Interface AnimationCollectionKey

    • Method Detail

      • create

        static AnimationCollectionKey create​(String collection,
                                             AnimationType type)
        Returns a animation collection instance by its string value.
        Parameters:
        collection - string value to use
        type - type of the properties
        Returns:
        new collection instance
      • create

        static AnimationCollectionKey create​(String collection,
                                             AnimationPropertyKey... properties)
        Returns a animation collection instance by its string value.
        Parameters:
        collection - string value to use
        properties - initial collection of properties
        Returns:
        new collection instance
      • isValid

        static boolean isValid​(AnimationCollectionKey collection)
        Returns true if type passed as argument is not null and its type is not null as well.
        Parameters:
        collection - animation collection to be checked
        Returns:
        true if type passed as argument is not null and its type is not null as well.
      • checkIfValid

        static void checkIfValid​(AnimationCollectionKey collection)
        Checks if type passed as argument is not null and its type is not null as well.
        If not, throw a IllegalArgumentException.
        Parameters:
        collection - animation collection to be checked
      • checkAndGetIfValid

        static AnimationCollectionKey checkAndGetIfValid​(AnimationCollectionKey collection)
        Checks if collection passed as argument is not null and its value is not null as well.
        If not, throw a IllegalArgumentException, otherwise it returns the argument.
        Parameters:
        collection - collection to be checked
        Returns:
        the same collection passed as argument
      • properties

        List<AnimationPropertyKey> properties()
        Returns the animation properties related to the collection.
        Returns:
        the animation properties related to the collection