Record Class CyclesSpec
java.lang.Object
java.lang.Record
io.nosqlbench.nb.api.engine.activityimpl.CyclesSpec
-
Constructor Summary
ConstructorsConstructorDescriptionCyclesSpec(long first_inclusive, long last_exclusive, String firstSpec, String lastSpec) Creates an instance of aCyclesSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanIndicates whether some other object is "equal to" this one.longReturns the value of thefirst_inclusiverecord component.Returns the value of thefirstSpecrecord component.inthashCode()Returns a hash code value for this object.longReturns the value of thelast_exclusiverecord component.lastSpec()Returns the value of thelastSpecrecord component.static CyclesSpecsummary()toString()Returns a string representation of this record class.withFirst(long first) withLast(long last)
-
Constructor Details
-
CyclesSpec
Creates an instance of aCyclesSpecrecord class.- Parameters:
first_inclusive- the value for thefirst_inclusiverecord componentlast_exclusive- the value for thelast_exclusiverecord componentfirstSpec- the value for thefirstSpecrecord componentlastSpec- the value for thelastSpecrecord component
-
-
Method Details
-
parse
-
summary
-
toString
-
withFirst
-
withFirst
-
withLast
-
withLast
-
cycle_count
public long cycle_count() -
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. -
hashCode
-
first_inclusive
public long first_inclusive()Returns the value of thefirst_inclusiverecord component.- Returns:
- the value of the
first_inclusiverecord component
-
last_exclusive
public long last_exclusive()Returns the value of thelast_exclusiverecord component.- Returns:
- the value of the
last_exclusiverecord component
-
firstSpec
Returns the value of thefirstSpecrecord component.- Returns:
- the value of the
firstSpecrecord component
-
lastSpec
Returns the value of thelastSpecrecord component.- Returns:
- the value of the
lastSpecrecord component
-