Class Data.ViewProxy<A>

java.lang.Object
eu.bandm.tools.ramus.ogma.Data.ViewProxy<A>
Type Parameters:
A - the type of unwrapped values
All Implemented Interfaces:
Data.View<A>
Enclosing interface:
Data

public static class Data.ViewProxy<A> extends Object implements Data.View<A>
A placeholder for a view that can be initialized late.
  • Method Details

    • view

      public A view(Data x)
      Returns the unwrapped interpretation of the given data according to this view.

      This implementation delegates to the body if intialized.

      Specified by:
      view in interface Data.View<A>
      Parameters:
      x - the wrapped data
      Returns:
      the unwrapped data, if this view is compatible
      Throws:
      IllegalStateException - if this proxy has not been initialized