> @@ -165,6 +168,22 @@ public String getHostname() {
>        return hostname;
>     }
>  
> +   /**
> +    * {@inheritDoc}
> +    */
> +   @Override
> +   public int compareTo(ResourceMetadata<ComputeType> that) {
> +      if (that instanceof NodeMetadata) {
> +         NodeMetadata thatMetadata = NodeMetadata.class.cast(that);
> +         return start()
> +                 .compare(this.getId(), thatMetadata.getId())
> +                 .compare(this.getType(), thatMetadata.getType())
> +                 .compare(this.getName(), that.getName(), 
> natural().nullsLast())
> +                 .result();

Ok, yeah, here we don't need it. I'll remove it - I thought I might have wanted 
to compare more fields, but yeah, I don't. =)

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/154/files#r6607687

Reply via email to