Interface AnimationPropertyKey

    • Method Detail

      • create

        static AnimationPropertyKey create​(String property,
                                           AnimationType type)
        Returns a animation property instance by its string value.
        Parameters:
        property - string value to use
        type - type related to the typeof property
        Returns:
        new property instance
      • isValid

        static boolean isValid​(AnimationPropertyKey property)
        Returns true if type passed as argument is not null and its type is not null as well.
        Parameters:
        property - animation property 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​(AnimationPropertyKey property)
        Checks if type passed as argument is not null and its type is not null as well.
        If not, throw a IllegalArgumentException.
        Parameters:
        property - animation property to be checked
      • checkAndGetIfValid

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