> + UNRECOGNIZED(OsFamily.UNRECOGNIZED, ""); //
> +
> + private final OsFamily osFamily;
> + private final String value;
> +
> + private Distribution(OsFamily osFamily, String value) {
> + this.osFamily = checkNotNull(osFamily, "osFamily cannot be null");
> + this.value = checkNotNull(value, "value cannot be null");
> + }
> +
> + public OsFamily getOsFamily() {
> + return this.osFamily;
> + }
> +
> + public static Distribution fromValue(String value) {
> + return tryFind(asList(Distribution.values()),
> hasValue(value)).or(UNRECOGNIZED);
Make a static variable for `asList(Distribution.values()`?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/49/files#r9165485