Package dev.gothickit.zenkit.mds
Record Class CachedEventMorphAnimation
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mds.CachedEventMorphAnimation
- All Implemented Interfaces:
CacheableObject<CachedEventMorphAnimation>,EventMorphAnimation
public record CachedEventMorphAnimation(int frame, @NotNull String animation, @NotNull String node)
extends Record
implements EventMorphAnimation
-
Constructor Summary
ConstructorsConstructorDescriptionCachedEventMorphAnimation(int frame, @NotNull String animation, @NotNull String node) Creates an instance of aCachedEventMorphAnimationrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the value of theanimationrecord component.@NotNull CachedEventMorphAnimationcache()final booleanIndicates whether some other object is "equal to" this one.intframe()Returns the value of theframerecord component.final inthashCode()Returns a hash code value for this object.booleanisCached()@NotNull Stringnode()Returns the value of thenoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedEventMorphAnimation
public CachedEventMorphAnimation(int frame, @NotNull @NotNull String animation, @NotNull @NotNull String node) Creates an instance of aCachedEventMorphAnimationrecord class.- Parameters:
frame- the value for theframerecord componentanimation- the value for theanimationrecord componentnode- the value for thenoderecord component
-
-
Method Details
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedEventMorphAnimation>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedEventMorphAnimation>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
frame
public int frame()Returns the value of theframerecord component.- Specified by:
framein interfaceEventMorphAnimation- Returns:
- the value of the
framerecord component
-
animation
Returns the value of theanimationrecord component.- Specified by:
animationin interfaceEventMorphAnimation- Returns:
- the value of the
animationrecord component
-
node
Returns the value of thenoderecord component.- Specified by:
nodein interfaceEventMorphAnimation- Returns:
- the value of the
noderecord component
-