Record Class TickData.SegmentedAverage
java.lang.Object
java.lang.Record
ca.spottedleaf.common.time.TickData.SegmentedAverage
- Enclosing class:
TickData
public static record TickData.SegmentedAverage(TickData.SegmentData segmentAll, TickData.SegmentData segment99PercentBest, TickData.SegmentData segment95PercentBest, TickData.SegmentData segment5PercentWorst, TickData.SegmentData segment1PercentWorst, long[] rawData)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSegmentedAverage(TickData.SegmentData segmentAll, TickData.SegmentData segment99PercentBest, TickData.SegmentData segment95PercentBest, TickData.SegmentData segment5PercentWorst, TickData.SegmentData segment1PercentWorst, long[] rawData) Creates an instance of aSegmentedAveragerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.Returns the value of thesegment1PercentWorstrecord component.Returns the value of thesegment5PercentWorstrecord component.Returns the value of thesegment95PercentBestrecord component.Returns the value of thesegment99PercentBestrecord component.Returns the value of thesegmentAllrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SegmentedAverage
public SegmentedAverage(TickData.SegmentData segmentAll, TickData.SegmentData segment99PercentBest, TickData.SegmentData segment95PercentBest, TickData.SegmentData segment5PercentWorst, TickData.SegmentData segment1PercentWorst, long[] rawData) Creates an instance of aSegmentedAveragerecord class.- Parameters:
segmentAll- the value for thesegmentAllrecord componentsegment99PercentBest- the value for thesegment99PercentBestrecord componentsegment95PercentBest- the value for thesegment95PercentBestrecord componentsegment5PercentWorst- the value for thesegment5PercentWorstrecord componentsegment1PercentWorst- the value for thesegment1PercentWorstrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
segmentAll
Returns the value of thesegmentAllrecord component.- Returns:
- the value of the
segmentAllrecord component
-
segment99PercentBest
Returns the value of thesegment99PercentBestrecord component.- Returns:
- the value of the
segment99PercentBestrecord component
-
segment95PercentBest
Returns the value of thesegment95PercentBestrecord component.- Returns:
- the value of the
segment95PercentBestrecord component
-
segment5PercentWorst
Returns the value of thesegment5PercentWorstrecord component.- Returns:
- the value of the
segment5PercentWorstrecord component
-
segment1PercentWorst
Returns the value of thesegment1PercentWorstrecord component.- Returns:
- the value of the
segment1PercentWorstrecord component
-
rawData
public long[] rawData()Returns the value of therawDatarecord component.- Returns:
- the value of the
rawDatarecord component
-