Package com.complexible.common.view

# Class Views<Input>

java.lang.Object
com.complexible.common.view.Views<Input>

public final class Views<Input> extends Object

Since:
  2.2
Version:
  2.2
Author:
  Michael Grove

- ## Method Summary

  Modifier and Type
  Method
  Description
  `<Input, Output>
  Output`
  `as(Input theConn, 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(Set<IView> theViews)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### empty

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

  - ### of

    public static <IView extends View<Input, ?>, Input> Views<Input> of(Set<IView> theViews)

  - ### as

    public <Input, Output> Output as(Input theConn, 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