> + * @return The string value.
> + */
> + public String value() {
> + return name();
> + }
> +
> + @Override
> + public String toString() {
> + return value();
> + }
> +
> + /**
> + * @param status The string representation of a Status
> + * @return The corresponding Status.
> + */
> + public static Status fromValue(String status) {
fromValue is used in our custom json parsers to provide UNRECOGNIZED. valueOf
is used automatically otherwise. However, you can't override valueOf. Now,
having looked at it some more, I think I can remove UNRECOGNIZED and fromValue.
This will simplify the code without losing functionality.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/78/files#r9678918