Interface TransitionKey
-
- All Superinterfaces:
Key
- All Known Implementing Classes:
DefaultTransitionKey,StandardAnimationTransition
public interface TransitionKey extends Key
Represents the update mode (transition) to set to configure animation.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
Static Methods Modifier and Type Method Description static TransitionKeycheckAndGetIfValid(TransitionKey transition)Checks if mode passed as argument is notnull.
If not, throw aIllegalArgumentException, otherwise it returns the argument.static voidcheckIfValid(TransitionKey transition)static TransitionKeycreate(String transition)Returns a animation update mode (transition) instance by its string value.static booleanisValid(TransitionKey transition)Returnstrueif type passed as argument is notnull.
-
-
-
Method Detail
-
create
static TransitionKey create(String transition)
Returns a animation update mode (transition) instance by its string value.- Parameters:
transition- string value to use- Returns:
- new update mode (transition) instance
-
isValid
static boolean isValid(TransitionKey transition)
Returnstrueif type passed as argument is notnull.- Parameters:
transition- animation update mode (transition) to be checked- Returns:
trueif type passed as argument is notnull
-
checkIfValid
static void checkIfValid(TransitionKey transition)
- Parameters:
transition- animation update mode (transition) to be checked
-
checkAndGetIfValid
static TransitionKey checkAndGetIfValid(TransitionKey transition)
Checks if mode passed as argument is notnull.
If not, throw aIllegalArgumentException, otherwise it returns the argument.- Parameters:
transition- update mode (transition) to be checked- Returns:
- the same update mode (transition) passed as argument
-
-