> + return name;
> + }
> +
> + /**
> + * This provides GSON enum support in jclouds.
> + * */
> + public static RuleDirection fromValue(String name){
> + if (name != null) {
> + for (RuleDirection value : RuleDirection.values()) {
> + if (name.equalsIgnoreCase(value.name)) {
> + return value;
> + }
> + }
> + return UNRECOGNIZED;
> + }
> + return null;
Technically ok with this, but might have to apply it in a lot of places.
Also, https://wiki.apache.org/jclouds/Enums which I'm fine changing.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/132/files#r17031302