org.ehcache.xml.model.Adapter3 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ehcache-xml Show documentation
Show all versions of ehcache-xml Show documentation
The module containing all XML parsing logic Ehcache 3
package org.ehcache.xml.model;
import java.math.BigInteger;
import javax.xml.bind.annotation.adapters.XmlAdapter;
public class Adapter3
extends XmlAdapter
{
public BigInteger unmarshal(String value) {
return (org.ehcache.xml.ParsingUtil.parsePropertyOrNonNegativeInteger(value));
}
public String marshal(BigInteger value) {
if (value == null) {
return null;
}
return value.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy