> @@ -74,6 +77,23 @@ public String getId() {
> return tags;
> }
>
> + /**
> + * {@inheritDoc}
> + */
> + @Override
> + public int compareTo(ResourceMetadata<ComputeType> that) {
> + if (that instanceof ComputeMetadata) {
> + ComputeMetadata thatMetadata = ComputeMetadata.class.cast(that);
> + return start()
> + .compare(this.getId(), thatMetadata.getId())
> + .compare(this.getType(), thatMetadata.getType())
> + .compare(this.getName(), that.getName(),
> natural().nullsLast())
> + .result();
Pull this out into a `public int compareTo(ComputeMetadata that)` method, or
would that break stuff?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/154/files#r6591392