Class DecimalFloatAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.Float>
de.gurkenlabs.litiengine.environment.tilemap.xml.DecimalFloatAdapter
public class DecimalFloatAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.Float>
This adapter implementation ensures that the float value is serialized
like an integer when it has no digits behind the decimal point.
Constructor Summary
Constructors Constructor Description DecimalFloatAdapter()
Method Summary
Constructor Details
DecimalFloatAdapter
public DecimalFloatAdapter()
Method Details
unmarshal
public java.lang.Float unmarshal(java.lang.String v) throws java.lang.Exception- Specified by:
unmarshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.Float>
- Throws:
java.lang.Exception
marshal
public java.lang.String marshal(java.lang.Float v) throws java.lang.Exception- Specified by:
marshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.lang.Float>
- Throws:
java.lang.Exception