| Modifier and Type | Method and Description |
|---|---|
DATA |
data()
Get the transformable data.
|
boolean |
hasInflector()
Check if there is an inflector available to process the data.
|
Inflector<DATA,RESULT> |
inflector()
Get the inflector transforming the data to the result.
|
static <REQUEST,RESPONSE> |
of(REQUEST data)
Create a new transformable data instance, but with the inflector not present.
|
static <REQUEST,RESPONSE> |
of(REQUEST data,
Inflector<REQUEST,RESPONSE> inflector)
Create a new transformable data with an inflector instance.
|
public static <REQUEST,RESPONSE> TransformableData<REQUEST,RESPONSE> of(REQUEST data, Inflector<REQUEST,RESPONSE> inflector)
REQUEST - data type.RESPONSE - result type.data - transformable data.inflector - data to result data transformation. May be {code null} if not available.public static <REQUEST,RESPONSE> TransformableData<REQUEST,RESPONSE> of(REQUEST data)
REQUEST - data type.RESPONSE - result type.data - transformable data.null inflector instance.public DATA data()
public Inflector<DATA,RESULT> inflector()
null if
the inflector is not available.null if not available.public boolean hasInflector()
The absence of an inflector indicates that there was no suitable inflector found for the data.
true if there is a transforming inflector available for the data,
false otherwise.Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.