
com.alachisoft.ncache.client.internal.util.Search Maven / Gradle / Ivy
package com.alachisoft.ncache.client.internal.util;
public enum Search {
LocalSearch(0),
LocalConfigSearch(1),
GlobalSearch(2);
private static java.util.HashMap mappings;
private int intValue;
private Search(int value) {
intValue = value;
Search.getMappings().put(value, this);
}
private static java.util.HashMap getMappings() {
if (mappings == null) {
synchronized (Search.class) {
if (mappings == null) {
mappings = new java.util.HashMap();
}
}
}
return mappings;
}
public static Search forValue(int value) {
return getMappings().get(value);
}
public int getValue() {
return intValue;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy