> +import com.google.common.collect.ImmutableList;
> +
> +/**
> + * A droplet.
> + *
> + * @author Sergi Castro
> + * @author Ignasi Barrera
> + */
> +public class Droplet {
> +
> + public enum Status {
> + NEW, ACTIVE, ARCHIVE, OFF;
> +
> + public static Status fromValue(String value) {
> + Optional<Status> status = Enums.getIfPresent(Status.class,
> value.toUpperCase());
> + checkArgument(status.isPresent(), "%s is not a valid value", value);
See comment above
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/49/files#r9165515