Interface TransitionMode
-
- All Superinterfaces:
Key
- All Known Implementing Classes:
DefaultTransitionMode
public interface TransitionMode 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 TransitionModecheckAndGetIfValid(TransitionMode transition)Checks if mode passed as argument is notnull.
If not, throw aIllegalArgumentException, otherwise it returns the argument.static voidcheckIfValid(TransitionMode transition)static TransitionModecreate(String transition)Returns a animation update mode (transition) instance by its string value.static booleanisValid(TransitionMode transition)Returnstrueif type passed as argument is notnull.
-
-
-
Method Detail
-
create
static TransitionMode 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(TransitionMode 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(TransitionMode transition)
- Parameters:
transition- animation update mode (transition) to be checked
-
checkAndGetIfValid
static TransitionMode checkAndGetIfValid(TransitionMode 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
-
-