> @@ -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();
See above
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/154/files#r6591396