Class TextureAtlas.CustomBooleanAdapter
- Enclosing class:
TextureAtlas
public static class TextureAtlas.CustomBooleanAdapter
extends jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Boolean>
Custom adapter to convert between String and Boolean values for XML serialization. This adapter interprets "y", "yes", "1", and "true"
(case-insensitive) as true, and any other value as false.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CustomBooleanAdapter
public CustomBooleanAdapter()
-
-
Method Details
-
unmarshal
Converts a String value to a Boolean. -
marshal
Converts a Boolean value to a String.
-