Package dev.gothickit.zenkit.mds
Record Class CachedEventCameraTremor
java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mds.CachedEventCameraTremor
- All Implemented Interfaces:
CacheableObject<CachedEventCameraTremor>,EventCameraTremor
public record CachedEventCameraTremor(int frame, int field1, int field2, int field3, int field4)
extends Record
implements EventCameraTremor
-
Constructor Summary
ConstructorsConstructorDescriptionCachedEventCameraTremor(int frame, int field1, int field2, int field3, int field4) Creates an instance of aCachedEventCameraTremorrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull CachedEventCameraTremorcache()final booleanIndicates whether some other object is "equal to" this one.intfield1()Returns the value of thefield1record component.intfield2()Returns the value of thefield2record component.intfield3()Returns the value of thefield3record component.intfield4()Returns the value of thefield4record component.intframe()Returns the value of theframerecord component.final inthashCode()Returns a hash code value for this object.booleanisCached()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedEventCameraTremor
public CachedEventCameraTremor(int frame, int field1, int field2, int field3, int field4) Creates an instance of aCachedEventCameraTremorrecord class.- Parameters:
frame- the value for theframerecord componentfield1- the value for thefield1record componentfield2- the value for thefield2record componentfield3- the value for thefield3record componentfield4- the value for thefield4record component
-
-
Method Details
-
cache
- Specified by:
cachein interfaceCacheableObject<CachedEventCameraTremor>
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceCacheableObject<CachedEventCameraTremor>
-
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. All components in this record class are compared with '=='. -
frame
public int frame()Returns the value of theframerecord component.- Specified by:
framein interfaceEventCameraTremor- Returns:
- the value of the
framerecord component
-
field1
public int field1()Returns the value of thefield1record component.- Specified by:
field1in interfaceEventCameraTremor- Returns:
- the value of the
field1record component
-
field2
public int field2()Returns the value of thefield2record component.- Specified by:
field2in interfaceEventCameraTremor- Returns:
- the value of the
field2record component
-
field3
public int field3()Returns the value of thefield3record component.- Specified by:
field3in interfaceEventCameraTremor- Returns:
- the value of the
field3record component
-
field4
public int field4()Returns the value of thefield4record component.- Specified by:
field4in interfaceEventCameraTremor- Returns:
- the value of the
field4record component
-