public class ListConversions extends Object
| Constructor and Description |
|---|
ListConversions() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<List<BigInteger>> |
toBigIntList(List<?> value)
Constructs a list of big integers from the given list of unknown type.
|
static Optional<List<Byte>> |
toByteList(List<?> value)
Constructs a list of bytes from the given list of unknown type.
|
static Optional<List<Double>> |
toDoubleList(List<?> value)
Constructs a list of doubles from the given list of unknown type.
|
static Optional<List<Float>> |
toFloatList(List<?> value)
Constructs a list of floats from the given list of unknown type.
|
static Optional<List<Integer>> |
toIntList(List<?> value)
Constructs a list of integers from the given list of unknown type.
|
static Optional<List<Long>> |
toLongList(List<?> value)
Constructs a list of longs from the given list of unknown type.
|
static Optional<List<Map<?,?>>> |
toMapList(List<?> value)
Constructs a list of maps from the given list of unknown type.
|
static Optional<List<Short>> |
toShortList(List<?> value)
Constructs a list of shorts from the given list of unknown type.
|
static Optional<List<String>> |
toStringList(List<?> value)
Constructs a list of strings from the given list of unknown type.
|
@NotNull public static Optional<List<String>> toStringList(@Nullable List<?> value)
null.
The individual elements of the list are processed each one by one. If there is an element incompatible, it is
skipped and will not appear in the returned list. Please learn more about compatible types at the main content
method Section.getOptionalString(Route).
value - the list to construct@NotNull public static Optional<List<Integer>> toIntList(@Nullable List<?> value)
null.
The individual elements of the list are processed each one by one. If there is an element incompatible, it is
skipped and will not appear in the returned list. Please learn more about compatible types at the main content
method Section.getOptionalInt(Route).
value - the list to construct@NotNull public static Optional<List<BigInteger>> toBigIntList(@Nullable List<?> value)
null.
The individual elements of the list are processed each one by one. If there is an element incompatible, it is
skipped and will not appear in the returned list. Please learn more about compatible types at the main content
method Section.getOptionalBigInt(Route).
value - the list to construct@NotNull public static Optional<List<Byte>> toByteList(@Nullable List<?> value)
null.
The individual elements of the list are processed each one by one. If there is an element incompatible, it is
skipped and will not appear in the returned list. Please learn more about compatible types at the main content
method Section.getOptionalByte(Route).
value - the list to construct@NotNull public static Optional<List<Long>> toLongList(@Nullable List<?> value)
null.
The individual elements of the list are processed each one by one. If there is an element incompatible, it is
skipped and will not appear in the returned list. Please learn more about compatible types at the main content
method Section.getOptionalLong(Route).
value - the list to construct@NotNull public static Optional<List<Double>> toDoubleList(@Nullable List<?> value)
null.
The individual elements of the list are processed each one by one. If there is an element incompatible, it is
skipped and will not appear in the returned list. Please learn more about compatible types at the main content
method Section.getOptionalDouble(Route).
value - the list to construct@NotNull public static Optional<List<Float>> toFloatList(@Nullable List<?> value)
null.
The individual elements of the list are processed each one by one. If there is an element incompatible, it is
skipped and will not appear in the returned list. Please learn more about compatible types at the main content
method Section.getOptionalFloat(Route).
value - the list to construct@NotNull public static Optional<List<Short>> toShortList(@Nullable List<?> value)
null.
The individual elements of the list are processed each one by one. If there is an element incompatible, it is
skipped and will not appear in the returned list. Please learn more about compatible types at the main content
method Section.getOptionalShort(Route).
value - the list to construct@NotNull public static Optional<List<Map<?,?>>> toMapList(@Nullable List<?> value)
null.
The individual elements of the list are processed each one by one. If there is an non-map element, it is skipped and will not appear in the returned list.
value - the list to constructCopyright © 2022. All rights reserved.