public class IntegerRange extends Object implements JIPipeCustomTextDescriptionParameter
Modifier and Type | Class and Description |
---|---|
static class |
IntegerRange.VariablesInfo |
Constructor and Description |
---|
IntegerRange()
Creates a new instance with a null value
|
IntegerRange(IntegerRange other)
Creates a copy
|
IntegerRange(String value)
Creates a new instance and initializes it
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
JIPipeExpressionParameter |
getExpression() |
List<Integer> |
getIntegers(int min,
int max,
JIPipeExpressionVariablesMap variables)
Generates the list of integers based on the value
|
static List<Integer> |
getIntegersFromRangeString(String value)
Converts a range string of format [range];[range];... to a list of integers
|
String |
getTextDescription()
Gets the parameter as custom text description
|
String |
getValue() |
int |
hashCode() |
boolean |
isUseExpression() |
void |
setExpression(JIPipeExpressionParameter expression) |
void |
setUseExpression(boolean useExpression) |
void |
setValue(String value) |
String |
toString() |
List<Integer> |
tryGetIntegers(int min,
int max,
JIPipeExpressionVariablesMap variables)
Generates the list of integers based on the value.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTextDescriptionOf
public IntegerRange()
public IntegerRange(String value)
value
- the valuepublic IntegerRange(IntegerRange other)
other
- the originalpublic static List<Integer> getIntegersFromRangeString(String value)
value
- the range stringpublic boolean isUseExpression()
public void setUseExpression(boolean useExpression)
public JIPipeExpressionParameter getExpression()
public void setExpression(JIPipeExpressionParameter expression)
public String getValue()
public void setValue(String value)
public List<Integer> tryGetIntegers(int min, int max, JIPipeExpressionVariablesMap variables)
min
- the min value the integers can havemax
- the max value the integers can havevariables
- the variables for the expression-based variantpublic List<Integer> getIntegers(int min, int max, JIPipeExpressionVariablesMap variables) throws NumberFormatException
min
- the min value the integers can havemax
- the max value the integers can havevariables
- the variables for the expression-based variantNumberFormatException
- if the format is wrongpublic String getTextDescription()
JIPipeCustomTextDescriptionParameter
getTextDescription
in interface JIPipeCustomTextDescriptionParameter
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.