Class ParameterValue
- java.lang.Object
-
- com.github.toolarium.processing.unit.dto.ParameterValue
-
- All Implemented Interfaces:
java.io.Serializable
public final class ParameterValue extends java.lang.Object implements java.io.SerializableDefines the value list. It acts as input parameter value- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterValue()ConstructorParameterValue(java.util.List<java.lang.String> valueList)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.BooleangetValueAsBoolean()Gets the first value as boolean.java.lang.BooleangetValueAsBoolean(int idx)Gets the value as boolean.java.util.List<java.lang.Boolean>getValueAsBooleanList()Gets the value as a boolean listjava.lang.CharactergetValueAsCharacter()Gets the first value as character.java.lang.CharactergetValueAsCharacter(int idx)Gets the value as character.java.util.List<java.lang.Character>getValueAsCharacterList()Gets the value as a character listjava.util.DategetValueAsDate()Gets the first value as date.java.util.DategetValueAsDate(int idx)Gets the value as date.java.util.List<java.util.Date>getValueAsDateList()Gets the value as a date listjava.lang.DoublegetValueAsDouble()Gets the first value as double.java.lang.DoublegetValueAsDouble(int idx)Gets the value as double.java.util.List<java.lang.Double>getValueAsDoubleList()Gets the value as a double listjava.lang.FloatgetValueAsFloat()Gets the first value as float.java.lang.FloatgetValueAsFloat(int idx)Gets the value as float.java.util.List<java.lang.Float>getValueAsFloatList()Gets the value as a float listjava.lang.IntegergetValueAsInteger()Gets the first value as integer.java.lang.IntegergetValueAsInteger(int idx)Gets the value as integer.java.util.List<java.lang.Integer>getValueAsIntegerList()Gets the value as a integer listjava.lang.LonggetValueAsLong()Gets the first value as long.java.lang.LonggetValueAsLong(int idx)Gets the value as long.java.util.List<java.lang.Long>getValueAsLongList()Gets the value as a long listjava.util.regex.PatterngetValueAsRegularExpression()Gets the first value as regular expressionjava.util.regex.PatterngetValueAsRegularExpression(int idx)Gets the value as regular expression.java.util.List<java.util.regex.Pattern>getValueAsRegularExpressionList()Gets the value as a regular expression listjava.lang.ShortgetValueAsShort()Gets the first value as short.java.lang.ShortgetValueAsShort(int idx)Gets the value as short.java.util.List<java.lang.Short>getValueAsShortList()Gets the value as a short listjava.lang.StringgetValueAsString()Gets the first valuejava.lang.StringgetValueAsString(int idx)Gets the value as string.java.util.List<java.lang.String>getValueAsStringList()Gets the value as a string listinthashCode()booleanisEmpty()Check if the value list ist emptyintsize()Gets the size of the value listjava.lang.StringtoString()
-
-
-
Method Detail
-
getValueAsString
public java.lang.String getValueAsString()
Gets the first value- Returns:
- the value
-
getValueAsString
public java.lang.String getValueAsString(int idx)
Gets the value as string.- Parameters:
idx- the index- Returns:
- the value
- Throws:
java.lang.ArrayIndexOutOfBoundsException- In case out of index
-
getValueAsStringList
public java.util.List<java.lang.String> getValueAsStringList()
Gets the value as a string list- Returns:
- the string list
-
getValueAsCharacter
public java.lang.Character getValueAsCharacter()
Gets the first value as character.- Returns:
- the value
-
getValueAsCharacter
public java.lang.Character getValueAsCharacter(int idx)
Gets the value as character.- Parameters:
idx- the index- Returns:
- the value
-
getValueAsCharacterList
public java.util.List<java.lang.Character> getValueAsCharacterList()
Gets the value as a character list- Returns:
- the character list
-
getValueAsBoolean
public java.lang.Boolean getValueAsBoolean()
Gets the first value as boolean.- Returns:
- the value
-
getValueAsBoolean
public java.lang.Boolean getValueAsBoolean(int idx)
Gets the value as boolean.- Parameters:
idx- the index- Returns:
- the value
-
getValueAsBooleanList
public java.util.List<java.lang.Boolean> getValueAsBooleanList()
Gets the value as a boolean list- Returns:
- the boolean list
-
getValueAsShort
public java.lang.Short getValueAsShort()
Gets the first value as short.- Returns:
- the value
-
getValueAsShort
public java.lang.Short getValueAsShort(int idx)
Gets the value as short.- Parameters:
idx- the index- Returns:
- the value
-
getValueAsShortList
public java.util.List<java.lang.Short> getValueAsShortList()
Gets the value as a short list- Returns:
- the short list
-
getValueAsInteger
public java.lang.Integer getValueAsInteger()
Gets the first value as integer.- Returns:
- the value
-
getValueAsInteger
public java.lang.Integer getValueAsInteger(int idx)
Gets the value as integer.- Parameters:
idx- the index- Returns:
- the value
-
getValueAsIntegerList
public java.util.List<java.lang.Integer> getValueAsIntegerList()
Gets the value as a integer list- Returns:
- the integer list
-
getValueAsLong
public java.lang.Long getValueAsLong()
Gets the first value as long.- Returns:
- the value
-
getValueAsLong
public java.lang.Long getValueAsLong(int idx)
Gets the value as long.- Parameters:
idx- the index- Returns:
- the value
-
getValueAsLongList
public java.util.List<java.lang.Long> getValueAsLongList()
Gets the value as a long list- Returns:
- the long list
-
getValueAsFloat
public java.lang.Float getValueAsFloat()
Gets the first value as float.- Returns:
- the value
-
getValueAsFloat
public java.lang.Float getValueAsFloat(int idx)
Gets the value as float.- Parameters:
idx- the index- Returns:
- the value
-
getValueAsFloatList
public java.util.List<java.lang.Float> getValueAsFloatList()
Gets the value as a float list- Returns:
- the float list
-
getValueAsDouble
public java.lang.Double getValueAsDouble()
Gets the first value as double.- Returns:
- the value
-
getValueAsDouble
public java.lang.Double getValueAsDouble(int idx)
Gets the value as double.- Parameters:
idx- the index- Returns:
- the value
-
getValueAsDoubleList
public java.util.List<java.lang.Double> getValueAsDoubleList()
Gets the value as a double list- Returns:
- the double list
-
getValueAsDate
public java.util.Date getValueAsDate()
Gets the first value as date.- Returns:
- the value
-
getValueAsDate
public java.util.Date getValueAsDate(int idx)
Gets the value as date.- Parameters:
idx- the index- Returns:
- the value
-
getValueAsDateList
public java.util.List<java.util.Date> getValueAsDateList()
Gets the value as a date list- Returns:
- the date list
-
getValueAsRegularExpression
public java.util.regex.Pattern getValueAsRegularExpression()
Gets the first value as regular expression- Returns:
- the value
-
getValueAsRegularExpression
public java.util.regex.Pattern getValueAsRegularExpression(int idx)
Gets the value as regular expression.- Parameters:
idx- the index- Returns:
- the value
-
getValueAsRegularExpressionList
public java.util.List<java.util.regex.Pattern> getValueAsRegularExpressionList()
Gets the value as a regular expression list- Returns:
- the regular expression list
-
isEmpty
public boolean isEmpty()
Check if the value list ist empty- Returns:
- true if it is empty
-
size
public int size()
Gets the size of the value list- Returns:
- the size
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-