Record Class TickData.MSPTData
java.lang.Object
java.lang.Record
ca.spottedleaf.common.time.TickData.MSPTData
- Enclosing class:
TickData
-
Constructor Summary
ConstructorsConstructorDescriptionMSPTData(double avg, long[] rawData) Creates an instance of aMSPTDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleavg()Returns the value of theavgrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.long[]rawData()Returns the value of therawDatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MSPTData
public MSPTData(double avg, long[] rawData) Creates an instance of aMSPTDatarecord class.- Parameters:
avg- the value for theavgrecord componentrawData- the value for therawDatarecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
avg
public double avg()Returns the value of theavgrecord component.- Returns:
- the value of the
avgrecord component
-
rawData
public long[] rawData()Returns the value of therawDatarecord component.- Returns:
- the value of the
rawDatarecord component
-