com.global.api.utils.ReverseIntEnumMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpayments-sdk Show documentation
Show all versions of globalpayments-sdk Show documentation
API for processing payments through Global Payments
package com.global.api.utils;
import com.global.api.entities.enums.INumericConstant;
import java.util.HashMap;
import java.util.Map;
public class ReverseIntEnumMap & INumericConstant> {
private Map map = new HashMap();
public ReverseIntEnumMap(Class valueType) {
for(V v: valueType.getEnumConstants()) {
map.put(v.getValue(), v);
}
}
public V get(int value) {
return map.get(value);
}
}