public class ListValue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<java.lang.String> |
strings
The underlying list of string elements.
|
Constructor and Description |
---|
ListValue(java.lang.String value)
Constructs a new instance from a comma-separated string of values.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.math.BigDecimal> |
ofBigDecimals()
Gets the list of elements converted to big decimals.
|
java.util.List<java.math.BigDecimal> |
ofBigDecimals(java.math.MathContext mc)
Gets the list of elements converted to big decimals with a given maths context.
|
java.util.List<java.math.BigInteger> |
ofBigIntegers()
Gets the list of elements converted to decimal big integers.
|
java.util.List<java.math.BigInteger> |
ofBigIntegers(int radix)
Gets the list of elements converted to big integers with a given radix.
|
java.util.List<java.lang.Boolean> |
ofBooleans()
Gets the list of elements converted to booleans.
|
java.util.List<Duration> |
ofDurations()
Gets the list of elements converted to durations.
|
java.util.List<java.lang.Float> |
ofFloats()
Gets the list of elements converted to floats.
|
java.util.List<java.lang.Integer> |
ofIntegers()
Gets the list of elements converted to decimal integers.
|
java.util.List<java.lang.Integer> |
ofIntegers(int radix)
Gets the list of elements converted to integers with a given radix.
|
java.util.List<java.lang.Long> |
ofLongs()
Gets the list of elements converted to decimal longs.
|
java.util.List<java.lang.Long> |
ofLongs(int radix)
Gets the list of elements converted to longs with a given radix.
|
java.util.List<MemorySize> |
ofMemorySizes()
Gets the list of elements converted to memory sizes.
|
java.util.List<java.lang.String> |
ofStrings()
Gets the list of strings.
|
public final java.util.List<java.lang.String> strings
public ListValue(java.lang.String value)
value
- the comma-separated string (not null)public java.util.List<java.lang.String> ofStrings()
public java.util.List<java.lang.Integer> ofIntegers(int radix) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public java.util.List<java.lang.Integer> ofIntegers() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public java.util.List<java.lang.Long> ofLongs(int radix) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public java.util.List<java.lang.Long> ofLongs() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public java.util.List<java.math.BigInteger> ofBigIntegers(int radix) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public java.util.List<java.math.BigInteger> ofBigIntegers() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public java.util.List<java.math.BigDecimal> ofBigDecimals(java.math.MathContext mc) throws java.lang.NumberFormatException, java.lang.ArithmeticException
java.lang.NumberFormatException
java.lang.ArithmeticException
public java.util.List<java.math.BigDecimal> ofBigDecimals() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public java.util.List<java.lang.Float> ofFloats() throws java.lang.NumberFormatException
java.lang.NumberFormatException
public java.util.List<java.lang.Boolean> ofBooleans() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.util.List<Duration> ofDurations() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.util.List<MemorySize> ofMemorySizes() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException