T
- The type of the object to extract.public class GenericObjectExtractor<T> extends Object implements ObjectExtractor<T>
ResultElement
.Constructor and Description |
---|
GenericObjectExtractor(Class<T> objectType) |
Modifier and Type | Method and Description |
---|---|
T |
extract(ResultElement resultElement)
Extracts the value of the given
ResultElement as the type T . |
@Nonnull public T extract(@Nonnull ResultElement resultElement) throws UnsupportedOperationException
ObjectExtractor
ResultElement
as the type T
.extract
in interface ObjectExtractor<T>
resultElement
- The ResultElement
to transform.resultElement
as the given type.UnsupportedOperationException
- If the value could not be converted to the given type.Copyright © 2019 SAP SE. All rights reserved.