java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<
String,
Float>
de.gurkenlabs.litiengine.environment.tilemap.xml.DecimalFloatAdapter
public class DecimalFloatAdapter
extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,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
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DecimalFloatAdapter
public DecimalFloatAdapter()
-
Method Details
-
unmarshal
- Specified by:
unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Float>
- Throws:
Exception
-
marshal
- Specified by:
marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Float>
- Throws:
Exception