public interface AnimationCollectionKey extends IsTypedAnimationKey
Modifier and Type | Method and Description |
---|---|
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. |
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 . |
static AnimationCollectionKey |
create(String collection,
AnimationPropertyKey... properties)
Returns a animation collection instance by its string value.
|
static AnimationCollectionKey |
create(String collection,
AnimationType type)
Returns a animation collection instance by its string value.
|
static boolean |
isValid(AnimationCollectionKey collection)
Returns
true if type passed as argument is not null and its type is not null as well. |
List<AnimationPropertyKey> |
properties()
Returns the animation properties related to the collection.
|
type
checkIfValid, compare, create, equals, getKeyByValue, getKeyByValue, hasKeyByValue, isValid, value
static AnimationCollectionKey create(String collection, AnimationType type)
collection
- string value to usetype
- type of the propertiesstatic AnimationCollectionKey create(String collection, AnimationPropertyKey... properties)
collection
- string value to useproperties
- initial collection of propertiesstatic boolean isValid(AnimationCollectionKey collection)
true
if type passed as argument is not null
and its type is not null
as well.collection
- animation collection to be checkedtrue
if type passed as argument is not null
and its type is not null
as well.static void checkIfValid(AnimationCollectionKey collection)
null
and its type is not null
as well.IllegalArgumentException
.collection
- animation collection to be checkedstatic AnimationCollectionKey checkAndGetIfValid(AnimationCollectionKey collection)
null
and its value is not null
as well.IllegalArgumentException
, otherwise it returns the argument.checkAndGetIfValid
in interface Key
collection
- collection to be checkedList<AnimationPropertyKey> properties()