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 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 a SegmentedAverage record class.
      Parameters:
      segmentAll - the value for the segmentAll record component
      segment99PercentBest - the value for the segment99PercentBest record component
      segment95PercentBest - the value for the segment95PercentBest record component
      segment5PercentWorst - the value for the segment5PercentWorst record component
      segment1PercentWorst - the value for the segment1PercentWorst record component
      rawData - the value for the rawData record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • segmentAll

      public TickData.SegmentData segmentAll()
      Returns the value of the segmentAll record component.
      Returns:
      the value of the segmentAll record component
    • segment99PercentBest

      public TickData.SegmentData segment99PercentBest()
      Returns the value of the segment99PercentBest record component.
      Returns:
      the value of the segment99PercentBest record component
    • segment95PercentBest

      public TickData.SegmentData segment95PercentBest()
      Returns the value of the segment95PercentBest record component.
      Returns:
      the value of the segment95PercentBest record component
    • segment5PercentWorst

      public TickData.SegmentData segment5PercentWorst()
      Returns the value of the segment5PercentWorst record component.
      Returns:
      the value of the segment5PercentWorst record component
    • segment1PercentWorst

      public TickData.SegmentData segment1PercentWorst()
      Returns the value of the segment1PercentWorst record component.
      Returns:
      the value of the segment1PercentWorst record component
    • rawData

      public long[] rawData()
      Returns the value of the rawData record component.
      Returns:
      the value of the rawData record component