Interface Renderer<T,S>
-
- Type Parameters:
T- The input type for the renderer.S- The output type for the renderer.
- All Known Implementing Classes:
ObjectSwingRenderer,RendererAdapter
public interface Renderer<T,S>Maps objects of one type to objects of a different type. For example, this class could be used to render dates as Strings or to render arrays as GUI list components.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Srender(T entity)Renders an object of one type as an instance of another.
-
-
-
Method Detail
-
render
S render(T entity)
Renders an object of one type as an instance of another. For example, if the generic types of this renderer are Date and String, this method would return a String representation of a Date.- Parameters:
entity- An object to render as a different type.- Returns:
- A rendering of the parameter.
-
-