Package com.complexible.common.view
Class Views<Input>
- java.lang.Object
-
- com.complexible.common.view.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>
Outputas(Input theConn, java.lang.Class<Output> theView)
Return the view of the provided objectstatic <IView extends View<Input,?>,Input>
Views<Input>empty()
static <IView extends View<Input,?>,Input>
Views<Input>of(java.util.Set<IView> theViews)
-
-
-
Method Detail
-
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 objecttheView
- 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
-
-