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
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic Struct.MapViewFactoryProvides typed access on the given data map.static <T> TCreates a data container for the given accessor interface.static Struct.IterableViewFactoryProvides 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
-