public interface CollectedResultCollection
ElementName via the
ResultCollection.collect(String) method. This class offers several methods to access the content in a
strongly typed manner.ResultCollection| Modifier and Type | Method and Description |
|---|---|
List<BigDecimal> |
asBigDecimalList()
Returns a list of values from this instance.
|
Set<BigDecimal> |
asBigDecimalSet()
Returns a set of values from this instance.
|
List<BigInteger> |
asBigIntegerList()
Returns a list of values from this instance.
|
Set<BigInteger> |
asBigIntegerSet()
Returns a set of values from this instance.
|
List<Boolean> |
asBooleanList()
Returns a list of values from this instance.
|
Set<Boolean> |
asBooleanSet()
Returns a set of values from this instance.
|
List<Byte> |
asByteList()
Returns a list of values from this instance.
|
Set<Byte> |
asByteSet()
Returns a set of values from this instance.
|
List<Character> |
asCharacterList()
Returns a list of values from this instance.
|
Set<Character> |
asCharacterSet()
Returns a set of values from this instance.
|
List<Double> |
asDoubleList()
Returns a list of values from this instance.
|
Set<Double> |
asDoubleSet()
Returns a set of values from this instance.
|
List<Float> |
asFloatList()
Returns a list of values from this instance.
|
Set<Float> |
asFloatSet()
Returns a set of values from this instance.
|
List<Integer> |
asIntegerList()
Returns a list of values from this instance.
|
Set<Integer> |
asIntegerSet()
Returns a set of values from this instance.
|
<T> List<T> |
asList(Class<T> objectType)
Returns a list of values from this instance.
|
List<Long> |
asLongList()
Returns a list of values from this instance.
|
Set<Long> |
asLongSet()
Returns a set of values from this instance.
|
<T> Set<T> |
asSet(Class<T> objectType)
Returns a set of values from this instance.
|
List<Short> |
asShortList()
Returns a list of values from this instance.
|
Set<Short> |
asShortSet()
Returns a set of values from this instance.
|
List<String> |
asStringList()
Returns a list of values from this instance.
|
Set<String> |
asStringSet()
Returns a set of values from this instance.
|
@Nonnull <T> List<T> asList(@Nonnull Class<T> objectType) throws UnsupportedOperationException
Important: In order to deserialize a result element to an object of a given type, you have to
annotate all relevant field members of the respective class with ElementName. For example:
class MyObject
{
@ElementName( "MANDT" )
SapClient sapClient;
}
T - The type into which the values should be converted.objectType - Class object of the type into which the values should be converted.T.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull <T> Set<T> asSet(@Nonnull Class<T> objectType) throws UnsupportedOperationException
Important: In order to deserialize a result element to an object of a given type, you have to
annotate all relevant field members of the respective class with ElementName. For example:
class MyObject
{
@ElementName( "MANDT" )
SapClient sapClient;
}
T - The type into which the values should be converted.objectType - Class object of the type into which the values should be converted.T.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull List<Boolean> asBooleanList() throws UnsupportedOperationException
Boolean.Boolean.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull Set<Boolean> asBooleanSet() throws UnsupportedOperationException
Boolean.Boolean.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull List<Byte> asByteList() throws UnsupportedOperationException
Byte.Byte.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull Set<Byte> asByteSet() throws UnsupportedOperationException
Byte.Byte.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull List<Character> asCharacterList() throws UnsupportedOperationException
Character.Character.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull Set<Character> asCharacterSet() throws UnsupportedOperationException
Character.Character.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull List<String> asStringList() throws UnsupportedOperationException
String.String.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull Set<String> asStringSet() throws UnsupportedOperationException
String.String.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull List<Integer> asIntegerList() throws UnsupportedOperationException
Integer.Integer.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull Set<Integer> asIntegerSet() throws UnsupportedOperationException
Integer.Integer.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull List<Short> asShortList() throws UnsupportedOperationException
Short.Short.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull Set<Short> asShortSet() throws UnsupportedOperationException
Short.Short.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull List<Long> asLongList() throws UnsupportedOperationException
Long.Long.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull Set<Long> asLongSet() throws UnsupportedOperationException
Long.Long.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull List<Float> asFloatList() throws UnsupportedOperationException
Float.Float.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull Set<Float> asFloatSet() throws UnsupportedOperationException
Float.Float.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull List<Double> asDoubleList() throws UnsupportedOperationException
Double.Double.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull Set<Double> asDoubleSet() throws UnsupportedOperationException
Double.Double.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull List<BigInteger> asBigIntegerList() throws UnsupportedOperationException
BigInteger.BigInteger.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull Set<BigInteger> asBigIntegerSet() throws UnsupportedOperationException
BigInteger.BigInteger.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull List<BigDecimal> asBigDecimalList() throws UnsupportedOperationException
BigDecimal.BigDecimal.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.@Nonnull Set<BigDecimal> asBigDecimalSet() throws UnsupportedOperationException
BigDecimal.BigDecimal.UnsupportedOperationException - If the value could not be found or could not be converted to the given type.Copyright © 2021 SAP SE. All rights reserved.