com.hps.integrator.infrastructure.utils.ReverseByteEnumMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of secure-submit Show documentation
Show all versions of secure-submit Show documentation
The SecureSubmit Java SDK simplifies processing of credit card transactions using Heartland Payment Systems' Portico Payment Gateway
package com.hps.integrator.infrastructure.utils;
import com.hps.integrator.abstractions.IByteConstant;
import java.util.*;
public class ReverseByteEnumMap & IByteConstant> {
private Map map = new HashMap();
public ReverseByteEnumMap(Class valueType) {
for(V v: valueType.getEnumConstants()) {
map.put(v.getByte(), v);
}
}
public V get(byte value) {
return map.get(value);
}
}