Package org.jboss.marshalling.util
Class FloatFieldPutter
- java.lang.Object
-
- org.jboss.marshalling.util.FieldPutter
-
- org.jboss.marshalling.util.FloatFieldPutter
-
public class FloatFieldPutter extends FieldPutter
A field putter for float-type fields.
-
-
Constructor Summary
Constructors Constructor Description FloatFieldPutter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetFloat()Get the float value of this field.KindgetKind()Get the kind of field being written.voidsetFloat(float value)Set the float value of this field.voidwrite(Marshaller marshaller)Write the value of this field in its proper native format.
-
-
-
Method Detail
-
write
public void write(Marshaller marshaller) throws IOException
Write the value of this field in its proper native format.- Specified by:
writein classFieldPutter- Parameters:
marshaller- the marshaller to which to write- Throws:
IOException- if an error occurs
-
getKind
public Kind getKind()
Get the kind of field being written.- Specified by:
getKindin classFieldPutter- Returns:
- the kind of field
-
getFloat
public float getFloat()
Get the float value of this field.- Overrides:
getFloatin classFieldPutter- Returns:
- the float value of this field
-
setFloat
public void setFloat(float value)
Set the float value of this field.- Overrides:
setFloatin classFieldPutter- Parameters:
value- the float value of this field
-
-