jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zack Shoylev <notificati...@github.com>
Subject Re: [jclouds-labs-openstack] Adds support for Rackspace Cloud Big Data (#78)
Date Wed, 12 Feb 2014 18:23:58 GMT
> +       * @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
Mime
View raw message