|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ValidFeatureKeyPredicate>
com.atlassian.sal.api.features.ValidFeatureKeyPredicate
@Immutable public enum ValidFeatureKeyPredicate
A given string represents a valid feature key if the following conditions are satisfied:
| Enum Constant Summary | |
|---|---|
INSTANCE
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.common.base.Predicate |
|---|
equals |
| Enum Constant Detail |
|---|
public static final ValidFeatureKeyPredicate INSTANCE
| Method Detail |
|---|
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 name
NullPointerException - if the argument is null
public static boolean isValidFeatureKey(@Nullable
String input)
input - a feature key candidate
true if the given input is an acceptable feature key, false otherwiseValidFeatureKeyPredicate
public static String checkFeatureKey(@Nullable
String input)
input - the expected feature key
InvalidFeatureKeyException - if the input is not a valid feature key
public boolean apply(@Nullable
String input)
apply in interface com.google.common.base.Predicate<String>input - a feature key candidate
true if the given input is an acceptable feature key, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||