> +
> + public static ResourceType fromValue(String resourceType) {
> + Integer code = Integer.valueOf(checkNotNull(resourceType,
> "resourcetype"));
> + return INDEX.containsKey(code) ? INDEX.get(code) : UNRECOGNIZED;
> + }
> + }
> +
> + public static Builder<?> builder() {
> + return new ConcreteBuilder();
> + }
> +
> + public Builder<?> toBuilder() {
> + return new ConcreteBuilder().fromTag(this);
> + }
> +
> + public abstract static class Builder<T extends Builder<T>> {
Hrm. I actually can't figure out how to do that right - all the other domain
classes in CloudStack are abstract builder-y like this, so I'm going to leave
it as is.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/578/files#r19177608