Top Description Fields Constructors Methods
org.jboss.marshalling.util

public Class FloatReadField

extends ReadField
Class Inheritance
Imports
org.jboss.marshalling.reflect.SerializableField, java.io.IOException

A read field whose value is a float type.

Field Summary

Modifier and TypeField and Description
private final float

Constructor Summary

AccessConstructor and Description
public
FloatReadField(final SerializableField
the serializable field
field
,
final float
the value
value
)

Construct a new instance.

public
FloatReadField(final SerializableField
the serializable field
field
)

Construct a new instance with the default value.

Method Summary

Modifier and TypeMethod and Description
public float
getFloat()

Overrides org.jboss.marshalling.util.ReadField.getFloat.

Get the float value of this field.
public Kind
getKind()

Implements abstract org.jboss.marshalling.util.ReadField.getKind.

Get the kind of field represented by this object.
Inherited from org.jboss.marshalling.util.ReadField:
compareTogetBooleangetBytegetChargetDoublegetIntgetLonggetNamegetObjectgetShortisDefaulted

Field Detail

valueback to summary
private final float value

Constructor Detail

FloatReadFieldback to summary
public FloatReadField(final SerializableField field, final float value)

Construct a new instance.

Parameters
field:SerializableField

the serializable field

value:float

the value

FloatReadFieldback to summary
public FloatReadField(final SerializableField field)

Construct a new instance with the default value.

Parameters
field:SerializableField

the serializable field

Method Detail

getFloatback to summary
public float getFloat() throws IOException

Overrides org.jboss.marshalling.util.ReadField.getFloat.

Doc from org.jboss.marshalling.util.ReadField.getFloat.

Get the float value of this field.

Returns:float

the float value of this field

Exceptions
IOException:
if the value cannot be read
getKindback to summary
public Kind getKind()

Implements abstract org.jboss.marshalling.util.ReadField.getKind.

Doc from org.jboss.marshalling.util.ReadField.getKind.

Get the kind of field represented by this object.

Returns:Kind

the kind of field represented by this object