JavaScript is disabled on your browser.
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
Converts a structurally typed item into a nominally typed Java
object.
Converts a structurally typed item into a nominally typed Java
object based on the provided prototype object.
Converts a nominally typed Java object into its structurally typed
equivalent.
Converts a nominally typed Java object into its structurally typed
equivalent based on the provided prototype item.
Returns the reified Class of type T.
Returns a default–possibly null–value of type T.
Returns a version of this Form with the given unit value.
forArray , forBigInteger , forBoolean , forBuiltin , forByte , forByteBuffer , forCharacter , forClass , forClass , forCollection , forDouble , forFloat , forInteger , forItem , forList , forLong , forMap , forMap , forNumber , forSet , forShort , forString , forValue , isBuiltin , tag , tag
Constructor Details
PolyForm
public PolyForm ()
Method Details
unit
Description copied from class: Form
Returns a default–possibly
null–value of type
T. Used
as the fallback return value when
coercing an
invalid structural value.
Overrides:
unit in class Form <Object >
unit
Description copied from class: Form
Returns a version of this Form with the given unit value.
Overrides:
unit in class Form <Object >
type
public final Class <?> type ()
Description copied from class: Form
Returns the reified Class of type T.
Specified by:
type in class Form <Object >
mold
Description copied from class: Form
Converts a nominally typed Java object into its structurally typed
equivalent based on the provided prototype item. The passed-in
item is assumed to be non-null. The returned Item
must never be null.
Overrides:
mold in class Form <Object >
mold
Description copied from class: Form
Converts a nominally typed Java object into its structurally typed
equivalent. The returned Item must never be null.
Specified by:
mold in class Form <Object >
moldMap
protected Item moldMap (Map <?,?> object)
cast
Description copied from class: Form
Converts a structurally typed item into a nominally typed Java
object based on the provided prototype object. The passed-in
item is assumed to be non-null. The passed-in prototype
object may be null.
Overrides:
cast in class Form <Object >
cast
Description copied from class: Form
Converts a structurally typed item into a nominally typed Java
object. The passed-in item is assumed to be non-null.
Specified by:
cast in class Form <Object >
reflectClass
public <T> Form <T> reflectClass (Class <?> type)
reflectClassName
public <T> Form <T> reflectClassName (String className)