> + > + public String value() { > + return name().toLowerCase(); > + } > + > + @Override > + public String toString() { > + return value(); > + } > + > + public static ContainerFormat fromValue(String containerFormat) { > + try { > + return valueOf(checkNotNull(containerFormat, > "containerFormat").toUpperCase()); > + } catch (IllegalArgumentException e) { > + return UNRECOGNIZED; > + }
Use a more idiomatic one? ```java return Enums.getIfPresent(ContainerFormat .class, checkNotNull(containerFormat, "containerFormat").toUpperCase()).or(UNRECOGNIZED); ``` --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/77/files#r9094085