Interface IsAnimations

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default AnimationCollection create​(String collection)
      Creates an animation collection instance and stores in the animation options.
      AnimationCollection create​(Key collection)
      Creates an animation collection instance and stores in the animation options.
      default void delete​(String collection)
      Removes an animation collection previously added.
      void delete​(Key collection)
      Removes an animation collection previously added.
      default AnimationCollection get​(String collection)
      Returns an animation collection instance if stored in the animation options.
      AnimationCollection get​(Key collection)
      Returns an animation collection instance if stored in the animation options.
      default boolean isEnabled​(String collection)
      Returns true if the animation collection is enabled, otherwise false.
      boolean isEnabled​(Key collection)
      Returns true if the animation collection is enabled, otherwise false.
      default void set​(String collection, AnimationCollection animationCollection)
      Sets an animation collection instance to store in the animation options.
      void set​(Key collection, AnimationCollection animationCollection)
      Sets an animation collection instance to store in the animation options.
      default void setEnabled​(String collection, boolean enabled)
      Enables or disables an animation collection instance in the animation options.
      void setEnabled​(Key collection, boolean enabled)
      Enables or disables an animation collection instance in the animation options.
    • Method Detail

      • setEnabled

        void setEnabled​(Key collection,
                        boolean enabled)
        Enables or disables an animation collection instance in the animation options.
        Parameters:
        collection - collection instance used to check in the animation options
        enabled - if true it enables an animation collection
      • setEnabled

        default void setEnabled​(String collection,
                                boolean enabled)
        Enables or disables an animation collection instance in the animation options.
        Parameters:
        collection - collection instance used to check in the animation options
        enabled - if true it enables an animation collection
      • isEnabled

        boolean isEnabled​(Key collection)
        Returns true if the animation collection is enabled, otherwise false.
        Parameters:
        collection - collection instance used to check in the animation options
        Returns:
        true if the animation collection is enabled, otherwise false
      • isEnabled

        default boolean isEnabled​(String collection)
        Returns true if the animation collection is enabled, otherwise false.
        Parameters:
        collection - collection instance used to check in the animation options
        Returns:
        true if the animation collection is enabled, otherwise false
      • get

        AnimationCollection get​(Key collection)
        Returns an animation collection instance if stored in the animation options.
        Specified by:
        get in interface IsDefaultAnimations
        Parameters:
        collection - collection instance used to get for animation options
        Returns:
        an animation collection instance or null if does not exists
      • get

        default AnimationCollection get​(String collection)
        Returns an animation collection instance if stored in the animation options.
        Specified by:
        get in interface IsDefaultAnimations
        Parameters:
        collection - collection instance used to get for animation options
        Returns:
        an animation collection instance or null if does not exists
      • set

        void set​(Key collection,
                 AnimationCollection animationCollection)
        Sets an animation collection instance to store in the animation options.
        Parameters:
        collection - collection instance used to get for animation options
        animationCollection - an animation collection instance to set
      • set

        default void set​(String collection,
                         AnimationCollection animationCollection)
        Sets an animation collection instance to store in the animation options.
        Parameters:
        collection - collection instance used to get for animation options
        animationCollection - an animation collection instance to set
      • create

        AnimationCollection create​(Key collection)
        Creates an animation collection instance and stores in the animation options.
        Parameters:
        collection - collection key used to create the animation collections
        Returns:
        a collection animation options
      • create

        default AnimationCollection create​(String collection)
        Creates an animation collection instance and stores in the animation options.
        Parameters:
        collection - collection key used to create the animation collections
        Returns:
        a collection animation options
      • delete

        void delete​(Key collection)
        Removes an animation collection previously added.
        Parameters:
        collection - collection instance used to remove from animation options
      • delete

        default void delete​(String collection)
        Removes an animation collection previously added.
        Parameters:
        collection - collection instance used to remove from animation options