com.xeiam.xchange.utils.jackson.EnumIntDeserializerOneBased Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-core Show documentation
Show all versions of xchange-core Show documentation
Core functionality used by all other modules.
package com.xeiam.xchange.utils.jackson;
/**
* @author Matija Mazi
* 1-based enum deserializer. This wil deserialize 1 as the first enum constant, 2 as the second etc.
*/
public class EnumIntDeserializerOneBased> extends EnumIntDeserializer {
protected EnumIntDeserializerOneBased(Class enumClass) {
super(enumClass);
}
@Override
protected int getIndexBase() {
return 1;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy