public final class FloatForm
extends Form<Float>
Transformation between a structurally typed
Item
and a
Float
.
-
Constructor Summary
Constructors
-
Method Summary
Converts a structurally typed item
into a nominally typed Java
object.
Converts a nominally typed Java object
into its structurally typed
equivalent.
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.
cast, forArray, forBigInteger, forBoolean, forBuiltin, forByte, forByteBuffer, forCharacter, forClass, forClass, forCollection, forDouble, forFloat, forInteger, forItem, forList, forLong, forMap, forMap, forNumber, forSet, forShort, forString, forValue, isBuiltin, mold, tag, tag
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FloatForm
public FloatForm(Float unit)
-
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<Float>
-
unit
Description copied from class: Form
Returns a version of this Form
with the given unit
value.
- Overrides:
unit
in class Form<Float>
-
type
Description copied from class: Form
Returns the reified Class
of type T
.
- Specified by:
type
in class Form<Float>
-
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<Float>
-
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<Float>