com.uwetrottmann.tmdb2.enumerations.Status Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tmdb-java Show documentation
Show all versions of tmdb-java Show documentation
tmdb-java is a retrofit2 based wrapper around the themoviedb.org API v3.
The newest version!
package com.uwetrottmann.tmdb2.enumerations;
import java.util.HashMap;
import java.util.Map;
public enum Status {
RUMORED("Rumored"),
PLANNED("Planned"),
IN_PRODUCTION("In Production"),
POST_PRODUCTION("Post Production"),
RELEASED("Released"),
CANCELLED("Cancelled");
public final String value;
Status(String value) {
this.value = value;
}
private static final Map STRING_MAPPING = new HashMap<>();
static {
for (Status via : Status.values()) {
STRING_MAPPING.put(via.toString().toUpperCase(), via);
}
}
public static Status fromValue(String value) {
return STRING_MAPPING.get(value.toUpperCase());
}
@Override
public String toString() {
return value;
}
}