java.lang.Object
java.lang.Record
pl.polsl.rtsa.controller.GridCalculator.GridInfo
- Record Components:
start- position of the first grid line (≥ visible min)step- distance between consecutive grid linescount- total number of grid lines in the visible range
- Enclosing class:
GridCalculator
Computed grid information.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGridInfo(double start, double step, int count) Creates an instance of aGridInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublestart()Returns the value of thestartrecord component.doublestep()Returns the value of thesteprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
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. -
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. -
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 with '=='. -
start
public double start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
step
public double step()Returns the value of thesteprecord component.- Returns:
- the value of the
steprecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-