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

jp.gopay.sdk.utils.EnumConverterUtils Maven / Gradle / Ivy

There is a newer version: 0.11.17
Show newest version
package jp.gopay.sdk.utils;


import com.google.gson.annotations.SerializedName;

public class EnumConverterUtils {
    public static > String getSerializedValue(E e) {
        String value = null;
        try {
            value = e.getClass().getField(e.name()).getAnnotation(SerializedName.class).value();
        } catch (NoSuchFieldException exception) {
            exception.printStackTrace();
        }

        return value;


    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy