> +import java.util.Map;
> +
> +import com.google.common.collect.ImmutableMap;
> +
> +public enum JobStatus {
> + SUCCEEDED("Succeeded"),
> + FAILED("Failed"),
> + IN_PROGRESS("InProgress");
> +
> + private final String value;
> +
> + private static final Map<String, JobStatus> stringToEnum =
> ImmutableMap.of("Succeeded", SUCCEEDED,
> + "Failed", FAILED, "InProgress", IN_PROGRESS);
> +
> + public static JobStatus fromString(String symbol) {
> + return stringToEnum.get(symbol);
Is there a guava class for each problem in life? Thanks Andrew, I'll fix this :)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/38/files#r14964523