@Immutable public enum ValidFeatureKeyPredicate extends Enum<ValidFeatureKeyPredicate> implements com.google.common.base.Predicate<String>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(String input)
Verify that the given string represents a valid feature key.
|
static String |
checkFeatureKey(String input)
Ensure that the given input string is a valid feature key.
|
static boolean |
isValidFeatureKey(String input)
Verify that the given string represents a valid feature key.
|
static ValidFeatureKeyPredicate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValidFeatureKeyPredicate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidFeatureKeyPredicate INSTANCE
public static ValidFeatureKeyPredicate[] values()
for (ValidFeatureKeyPredicate c : ValidFeatureKeyPredicate.values()) System.out.println(c);
public static ValidFeatureKeyPredicate 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 static boolean isValidFeatureKey(@Nullable String input)
input
- a feature key candidatetrue
if the given input is an acceptable feature key, false
otherwiseValidFeatureKeyPredicate
public static String checkFeatureKey(@Nullable String input)
input
- the expected feature keyInvalidFeatureKeyException
- if the input is not a valid feature keypublic boolean apply(@Nullable String input)
apply
in interface com.google.common.base.Predicate<String>
input
- a feature key candidatetrue
if the given input is an acceptable feature key, false
otherwiseCopyright © 2015 Atlassian. All rights reserved.