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 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)
        Returns true if type passed as argument is not null.
        Parameters:
        transition - animation update mode (transition) to be checked
        Returns:
        true if type passed as argument is not null
      • checkIfValid

        static void checkIfValid​(TransitionMode transition)
        Checks if type passed as argument is not null.
        If not, throw a IllegalArgumentException.
        Parameters:
        transition - animation update mode (transition) to be checked
      • checkAndGetIfValid

        static TransitionMode checkAndGetIfValid​(TransitionMode transition)
        Checks if mode passed as argument is not null.
        If not, throw a IllegalArgumentException, otherwise it returns the argument.
        Parameters:
        transition - update mode (transition) to be checked
        Returns:
        the same update mode (transition) passed as argument