Package com.sap.cds
Class Struct.MapViewFactory
- java.lang.Object
-
- com.sap.cds.Struct.MapViewFactory
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
as(Class<T> view)
Provides typed access on the underlying data map.<T> T
asReadOnly(Class<T> view)
Provides typed read-only access on the underlying data map.
-
-
-
Method Detail
-
as
public <T> T as(Class<T> view)
Provides typed access on the underlying data map.- Type Parameters:
T
- the return type- Parameters:
view
- the accessor interface- Returns:
- a typed writable view on the underlying data map
-
asReadOnly
public <T> T asReadOnly(Class<T> view)
Provides typed read-only access on the underlying data map.- Type Parameters:
T
- the return type- Parameters:
view
- the accessor interface- Returns:
- a typed read-only view on the underlying data map
-
-