Record Class Parameter.StringParameter.NumericRange
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.designer.tags.editing.dialog.multiinstancewizard.model.Parameter.StringParameter.NumericRange
- All Implemented Interfaces:
Parameter<String>
,Parameter.StringParameter
- Enclosing interface:
- Parameter.StringParameter
public static record Parameter.StringParameter.NumericRange(String name, String baseValue, int start, int step, Parameter.StringParameter.Placement placement)
extends Record
implements Parameter.StringParameter
Represents a numeric range with a specified start value and step.
Generates a list of numeric values within the specified range, appending the values to the baseValue based on the placement, up to the specified limit.
Example:
Parameter<String> numericRange = new Parameter.StringParameter.NumericRange(
"paramA",
"exampleText-",
1,
2,
Parameter.StringParameter.Placement.AFTER
);
// Generates ["exampleText-1", "exampleText-3", "exampleText-5"]
List<String> values = numericRange.getValues().limit(3).toList();
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.designer.tags.editing.dialog.multiinstancewizard.model.Parameter
Parameter.FloatParameter, Parameter.IntParameter, Parameter.StringParameter
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.designer.tags.editing.dialog.multiinstancewizard.model.Parameter.StringParameter
Parameter.StringParameter.AlphabeticRange, Parameter.StringParameter.ManualEntryList, Parameter.StringParameter.NumericRange, Parameter.StringParameter.Placement
-
Constructor Summary
ConstructorsConstructorDescriptionNumericRange
(String name, String baseValue, int start, int step, Parameter.StringParameter.Placement placement) Creates an instance of aNumericRange
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseValue
record component.Parameter<?>
cloneWithUpdatedValue
(Object newValue) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.Returns the value of theplacement
record component.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.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.designer.tags.editing.dialog.multiinstancewizard.model.Parameter.StringParameter
generateDefaultOverrides
-
Constructor Details
-
NumericRange
public NumericRange(String name, String baseValue, int start, int step, Parameter.StringParameter.Placement placement) Creates an instance of aNumericRange
record class.- Parameters:
name
- the value for thename
record componentbaseValue
- the value for thebaseValue
record componentstart
- the value for thestart
record componentstep
- the value for thestep
record componentplacement
- the value for theplacement
record component
-
-
Method Details
-
getValues
-
getPresentedValue
- Specified by:
getPresentedValue
in interfaceParameter<String>
-
cloneWithUpdatedValue
- Specified by:
cloneWithUpdatedValue
in interfaceParameter<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. -
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 '=='. -
name
Returns the value of thename
record component. -
baseValue
Returns the value of thebaseValue
record component.- Specified by:
baseValue
in interfaceParameter.StringParameter
- Returns:
- the value of the
baseValue
record component
-
start
public int start()Returns the value of thestart
record component.- Returns:
- the value of the
start
record component
-
step
public int step()Returns the value of thestep
record component.- Returns:
- the value of the
step
record component
-
placement
Returns the value of theplacement
record component.- Returns:
- the value of the
placement
record component
-