Class Views<Input>


  • public final class Views<Input>
    extends java.lang.Object

    Since:
    2.2
    Version:
    2.2
    Author:
    Michael Grove
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <Input,​Output>
      Output
      as​(Input theConn, java.lang.Class<Output> theView)
      Return the view of the provided object
      static <IView extends View<Input,​?>,​Input>
      Views<Input>
      empty()  
      static <IView extends View<Input,​?>,​Input>
      Views<Input>
      of​(java.util.Set<IView> theViews)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • empty

        public static <IView extends View<Input,​?>,​Input> Views<Input> empty()
      • of

        public static <IView extends View<Input,​?>,​Input> Views<Input> of​(java.util.Set<IView> theViews)
      • as

        public <Input,​Output> Output as​(Input theConn,
                                              java.lang.Class<Output> theView)
                                       throws View.ViewException
        Return the view of the provided object
        Parameters:
        theConn - the object
        theView - the new view of the object
        Returns:
        the object w/ a new view
        Throws:
        View.ViewException - if there was an exception viewing the object as the new type