Package com.sap.cloud.sdk.result
Interface CollectedResultCollection
- All Known Implementing Classes:
DefaultCollectedResultCollection
public interface CollectedResultCollection
A collection consisting of elements collected by their
ElementName via the
ResultCollection.collect(String) method. This class offers several methods to access the content in a
strongly typed manner.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list of values from this instance.Returns a set of values from this instance.Returns a list of values from this instance.Returns a set of values from this instance.Returns a list of values from this instance.Returns a set of values from this instance.Returns a list of values from this instance.Returns a set of values from this instance.Returns a list of values from this instance.Returns a set of values from this instance.Returns a list of values from this instance.Returns a set of values from this instance.Returns a list of values from this instance.Returns a set of values from this instance.Returns a list of values from this instance.Returns a set of values from this instance.<T> List<T>Returns a list of values from this instance.Returns a list of values from this instance.Returns a set of values from this instance.<T> Set<T>Returns a set of values from this instance.Returns a list of values from this instance.Returns a set of values from this instance.Returns a list of values from this instance.Returns a set of values from this instance.
-
Method Details
-
asList
Returns a list of values from this instance. The values are represented as an object of the given type.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; }- Type Parameters:
T- The type into which the values should be converted.- Parameters:
objectType- Class object of the type into which the values should be converted.- Returns:
- The list of values as objects of type
T. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asSet
Returns a set of values from this instance. The values are represented as an object of the given type.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; }- Type Parameters:
T- The type into which the values should be converted.- Parameters:
objectType- Class object of the type into which the values should be converted.- Returns:
- The set of values as objects of type
T. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asBooleanList
Returns a list of values from this instance. The values are represented asBoolean.- Returns:
- The list of values as
Boolean. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asBooleanSet
Returns a set of values from this instance. The values are represented asBoolean.- Returns:
- The set of values as
Boolean. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asByteList
Returns a list of values from this instance. The values are represented asByte.- Returns:
- The list of values as
Byte. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asByteSet
Returns a set of values from this instance. The values are represented asByte.- Returns:
- The set of values as
Byte. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asCharacterList
Returns a list of values from this instance. The values are represented asCharacter.- Returns:
- The list of values as
Character. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asCharacterSet
Returns a set of values from this instance. The values are represented asCharacter.- Returns:
- The set of values as
Character. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asStringList
Returns a list of values from this instance. The values are represented asString.- Returns:
- The list of values as
String. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asStringSet
Returns a set of values from this instance. The values are represented asString.- Returns:
- The set of values as
String. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asIntegerList
Returns a list of values from this instance. The values are represented asInteger.- Returns:
- The list of values as
Integer. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asIntegerSet
Returns a set of values from this instance. The values are represented asInteger.- Returns:
- The set of values as
Integer. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asShortList
Returns a list of values from this instance. The values are represented asShort.- Returns:
- The list of values as
Short. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asShortSet
Returns a set of values from this instance. The values are represented asShort.- Returns:
- The set of values as
Short. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asLongList
Returns a list of values from this instance. The values are represented asLong.- Returns:
- The list of values as
Long. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asLongSet
Returns a set of values from this instance. The values are represented asLong.- Returns:
- The set of values as
Long. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asFloatList
Returns a list of values from this instance. The values are represented asFloat.- Returns:
- The list of values as
Float. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asFloatSet
Returns a set of values from this instance. The values are represented asFloat.- Returns:
- The set of values as
Float. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asDoubleList
Returns a list of values from this instance. The values are represented asDouble.- Returns:
- The list of values as
Double. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asDoubleSet
Returns a set of values from this instance. The values are represented asDouble.- Returns:
- The set of values as
Double. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asBigIntegerList
Returns a list of values from this instance. The values are represented asBigInteger.- Returns:
- The list of values as
BigInteger. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asBigIntegerSet
Returns a set of values from this instance. The values are represented asBigInteger.- Returns:
- The set of values as
BigInteger. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asBigDecimalList
Returns a list of values from this instance. The values are represented asBigDecimal.- Returns:
- The list of values as
BigDecimal. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-
asBigDecimalSet
Returns a set of values from this instance. The values are represented asBigDecimal.- Returns:
- The set of values as
BigDecimal. - Throws:
UnsupportedOperationException- If the value could not be found or could not be converted to the given type.
-