Record Class Reference.NumericRange
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.designer.tags.editing.dialog.multiinstancewizard.model.Reference.NumericRange
- All Implemented Interfaces:
Reference
- Enclosing interface:
- Reference
public static record Reference.NumericRange(int start, int endInclusive, int step, String format)
extends Record
implements Reference
Represents a numeric range with specified start, end (inclusive), step, and format.
Generates a list of formatted numeric values within the specified range using DecimalFormat and the given step and format pattern.
Example:
Reference numericRange = new Reference.NumericRange(1, 5, 2, "000");
List<String> values = numericRange.getValues(); // Generates ["001", "003", "005"]
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.designer.tags.editing.dialog.multiinstancewizard.model.Reference
Reference.AlphabeticalRange, Reference.NumericRange
-
Constructor Summary
ConstructorsConstructorDescriptionNumericRange
(int start, int endInclusive, int step, String format) Creates an instance of aNumericRange
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of theendInclusive
record component.final boolean
Indicates whether some other object is "equal to" this one.format()
Returns the value of theformat
record component.final int
hashCode()
Returns a hash code value for this object.int
start()
Returns the value of thestart
record component.int
step()
Returns the value of thestep
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
NumericRange
Creates an instance of aNumericRange
record class.- Parameters:
start
- the value for thestart
record componentendInclusive
- the value for theendInclusive
record componentstep
- the value for thestep
record componentformat
- the value for theformat
record component
-
-
Method Details
-
getValues
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
start
public int start()Returns the value of thestart
record component.- Returns:
- the value of the
start
record component
-
endInclusive
public int endInclusive()Returns the value of theendInclusive
record component.- Returns:
- the value of the
endInclusive
record component
-
step
public int step()Returns the value of thestep
record component.- Returns:
- the value of the
step
record component
-
format
Returns the value of theformat
record component.- Returns:
- the value of the
format
record component
-