> +/**
> + * Transforms an {@link Status} to the jclouds portable model.
> + *
> + * @author Sergi Castro
> + * @author Ignasi Barrera
> + */
> +@Singleton
> +public class DropletStatusToStatus implements Function<Droplet.Status,
> Status> {
> +
> + private static final Function<Droplet.Status, Status> toPortableStatus =
> Functions.forMap(
> + ImmutableMap.<Droplet.Status, Status> builder()
> + .put(Droplet.Status.NEW, Status.PENDING)
> + .put(Droplet.Status.ACTIVE, Status.RUNNING)
> + .put(Droplet.Status.ARCHIVE, Status.TERMINATED)
> + .put(Droplet.Status.OFF, Status.SUSPENDED)
> + .build(), //
[minor] Still need the `//` here?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/49/files#r9229293