All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hps.integrator.infrastructure.utils.ReverseByteEnumMap Maven / Gradle / Ivy

Go to download

The SecureSubmit Java SDK simplifies processing of credit card transactions using Heartland Payment Systems' Portico Payment Gateway

There is a newer version: v2.5.2
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy