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

com.hps.integrator.infrastructure.utils.ReverseStringEnumMap 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.IStringConstant;

import java.util.HashMap;
import java.util.Map;

public class ReverseStringEnumMap & IStringConstant> {
    private Map map = new HashMap();

    public ReverseStringEnumMap(Class valueType) {
        for(V v: valueType.getEnumConstants()) {
            map.put(v.getValue(), v);
        }
    }

    public V get(String value) {
        return map.get(value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy