Package com.sap.cds

Class Struct.MapViewFactory

  • Enclosing class:
    Struct

    public static final class Struct.MapViewFactory
    extends Object
    • 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