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

com.uwetrottmann.trakt5.enums.ListPrivacy Maven / Gradle / Ivy

There is a newer version: 6.16.0
Show newest version
package com.uwetrottmann.trakt5.enums;

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

public enum ListPrivacy implements TraktEnum {

    PRIVATE("private"),
    FRIENDS("friends"),
    PUBLIC("public");

    public final String value;

    private ListPrivacy(String value) {
        this.value = value;
    }

    private static final Map STRING_MAPPING = new HashMap<>();

    static {
        for (ListPrivacy via : ListPrivacy.values()) {
            STRING_MAPPING.put(via.toString(), via);
        }
    }

    public static ListPrivacy fromValue(String value) {
        return STRING_MAPPING.get(value);
    }

    @Override
    public String toString() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy