Record Class CyclesSpec

java.lang.Object
java.lang.Record
io.nosqlbench.nb.api.engine.activityimpl.CyclesSpec

public record CyclesSpec(long first_inclusive, long last_exclusive, String firstSpec, String lastSpec) extends Record
  • Constructor Details

    • CyclesSpec

      public CyclesSpec(long first_inclusive, long last_exclusive, String firstSpec, String lastSpec)
      Creates an instance of a CyclesSpec record class.
      Parameters:
      first_inclusive - the value for the first_inclusive record component
      last_exclusive - the value for the last_exclusive record component
      firstSpec - the value for the firstSpec record component
      lastSpec - the value for the lastSpec record component
  • Method Details

    • parse

      public static CyclesSpec parse(String spec)
    • summary

      public String summary()
    • toString

      public 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
    • withFirst

      public CyclesSpec withFirst(long first)
    • withFirst

      public CyclesSpec withFirst(String firstSpec)
    • withLast

      public CyclesSpec withLast(long last)
    • withLast

      public CyclesSpec withLast(String lastSpec)
    • cycle_count

      public long cycle_count()
    • equals

      public 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • hashCode

      public 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
    • first_inclusive

      public long first_inclusive()
      Returns the value of the first_inclusive record component.
      Returns:
      the value of the first_inclusive record component
    • last_exclusive

      public long last_exclusive()
      Returns the value of the last_exclusive record component.
      Returns:
      the value of the last_exclusive record component
    • firstSpec

      public String firstSpec()
      Returns the value of the firstSpec record component.
      Returns:
      the value of the firstSpec record component
    • lastSpec

      public String lastSpec()
      Returns the value of the lastSpec record component.
      Returns:
      the value of the lastSpec record component