com.raynigon.unit_api.jackson.config.UnitApiConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-module Show documentation
Show all versions of jackson-module Show documentation
The jackson-module is a part of the unit-api
The newest version!
package com.raynigon.unit_api.jackson.config;
public class UnitApiConfig {
private final int featureMask;
public UnitApiConfig(int featureMask){
this.featureMask = featureMask;
}
public int getFeatureMask() {
return featureMask;
}
public boolean isEnabled(UnitApiFeature feature) {
return feature.enabledIn(featureMask);
}
}