Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buypublic class AnimationProperties
extends Object
implements Cloneable
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String key,
Object value)
Adds a property to the animation properties.
|
AnimationProperties |
clone() |
static AnimationProperties |
empty()
Static method to create an empty AnimationProperties object.
|
Color |
getColorOrDefault(String key,
Color defaultValue) |
<E extends Enum<E>> |
getEnumOrDefault(String key,
E defaultValue) |
Object |
getProperty(String key)
Retrieves a property by its key.
|
<T> T |
getProperty(String key,
Class<T> clazz)
Retrieves a property by its key, with type conversion compatibility.
|
<T> T |
getPropertyOrDefault(String key,
T defaultValue)
Retrieves a property by its key, with type conversion compatibility.
|
boolean |
hasProperty(String key)
Checks if a property exists in the animation properties.
|
Map<String,Object> |
map() |
static AnimationProperties |
of(Object... keyValuePairs)
Static method to create an AnimationProperties object from alternating key-value pairs.
|
void |
removeProperty(String key)
Removes a property from the animation properties.
|
void |
resetProperties()
Resets all properties in this animation to their default values.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static AnimationProperties empty()
public static AnimationProperties of(Object... keyValuePairs)
keyValuePairs - An array of alternating keys and values for the properties.public void addProperty(String key,
Object value)
key - The key for the property.value - The value of the property.public Object getProperty(String key)
key - The key of the property.public <T> T getProperty(String key,
Class<T> clazz)
T - The type to cast the property to.key - The key of the property.clazz - The class type to cast the property value to.public <T> T getPropertyOrDefault(String key,
@NonNull
T defaultValue)
T - The type of the default value (and the type to cast the property to).key - The key of the property.defaultValue - The default value to return if the property doesn't exist.public Color getColorOrDefault(String key,
Color defaultValue)
public <E extends Enum<E>> E getEnumOrDefault(String key,
E defaultValue)
public boolean hasProperty(String key)
key - The key of the property to check.public void removeProperty(String key)
key - The key of the property to remove.public void resetProperties()
public Map<String,Object> map()
public AnimationProperties clone()
clone in class Object
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy