Record Class GeneratorInfo
java.lang.Object
java.lang.Record
org.mineskin.data.GeneratorInfo
-
Constructor Summary
ConstructorsConstructorDescriptionGeneratorInfo(long timestamp, long duration) Creates an instance of aGeneratorInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeneratorInfo
public GeneratorInfo(long timestamp, long duration) Creates an instance of aGeneratorInforecord class.- Parameters:
timestamp- the value for thetimestamprecord componentduration- the value for thedurationrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
duration
public long duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-