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

com.global.api.terminals.diamond.enums.CardSource Maven / Gradle / Ivy

There is a newer version: 14.2.3
Show newest version
package com.global.api.terminals.diamond.enums;

public enum CardSource {
    CONTACTLESS("B"),
    MANUAL("M"),
    MAGSTRIPE("C"),
    ICC("P"),
    UNKNOWN("?");

    private String value;

    CardSource(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public static CardSource fromValue(String value) {
        for (CardSource cardSource : CardSource.values()) {
            if (cardSource.getValue().equals(value)) {
                return cardSource;
            }
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy