public enum Text extends Enum<Text> implements BiPredicate<String,String>
Text
is a BiPredicate
that determines whether the first string starts with, starts
not with, ends with, ends not with, contains or does not contain the second string argument.Enum Constant and Description |
---|
containing
Evaluates if the first string contains the second.
|
endingWith
Evaluates if the first string ends with the second.
|
notContaining
Evaluates if the first string does not contain the second.
|
notEndingWith
Evaluates if the first string does not end with the second.
|
notStartingWith
Evaluates if the first string does not start with the second.
|
startingWith
Evaluates if the first string starts with the second.
|
Modifier and Type | Method and Description |
---|---|
abstract Text |
negate()
Produce the opposite representation of the current
Text enum. |
static Text |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Text[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
and, or, test
public static final Text startingWith
public static final Text notStartingWith
public static final Text endingWith
public static final Text notEndingWith
public static final Text containing
public static final Text notContaining
public static Text[] values()
for (Text c : Text.values()) System.out.println(c);
public static Text valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract Text negate()
Text
enum.negate
in interface BiPredicate<String,String>
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.