Package com.sap.cds
Class Struct
java.lang.Object
com.sap.cds.Struct
Struct provides static helper methods to access data given as
Map
via
an accessor interface.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic Struct.MapViewFactory
Provides typed access on the given data map.static <T> T
Creates a data container for the given accessor interface.static Struct.IterableViewFactory
Provides typed stream access on the given data maps.
-
Method Details
-
create
Creates a data container for the given accessor interface.- Type Parameters:
T
- the return type- Parameters:
type
- the accessor interface- Returns:
- a typed data container
-
access
Provides typed access on the given data map.- Parameters:
data
- the data map to access- Returns:
- a factory, that provides typed access on the underlying data
-
stream
Provides typed stream access on the given data maps.- Parameters:
data
- the data maps to be streamed- Returns:
- a factory, that provides typed access on the underlying data
-