[]
Serializable, Comparable<ContainsOperator>, ConstableFormatConditionType.TextString conditional formatting rule.Use this enumeration with IFormatCondition.setTextOperator(ContainsOperator) to control whether the rule checks whether cell text contains, does not contain, begins with, or ends with the specified text.
worksheet.getRange("A1:A4").setValue(new Object[][] {{"Apple"}, {"Pear"}, {"Apricot"}, {"Plum"}});
IFormatCondition condition = (IFormatCondition) worksheet.getRange("A1:A4").getFormatConditions().add(FormatConditionType.TextString);
condition.setText("Ap");
condition.setTextOperator(ContainsOperator.BeginsWith);
Enum.EnumDesc<E extends Enum<E>>static ContainsOperatorstatic ContainsOperator[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is null