<p>Compares two UUID's for equality.</p>

@see Comparable#compareTo(Object)
547406
public int compareTo(Object compareTo) throws ClassCastException {
		if (!(compareTo instanceof UUID)) {
			throw new ClassCastException();
		}
		return (Bytes.compareTo(rawBytes, ((UUID) compareTo).getRawBytes()));
	}
1069717
@Override
    public int compareTo(DiscriminationGroup o) {
        if (o == null || !(o instanceof DiscriminationProcessImpl)) {
            return -1;
        }
        return o.hashCode() - hashCode();
    }
927948
@Override
	public int compareTo(ShortValue o) {
		final int other = o.value;
		return this.value < other ? -1 : this.value > other ? 1 : 0;
	}
1012410
@Override
    public int compareTo(@NonNull Operation another) {
        return another.definedPriority().priority - definedPriority().priority;
    }
16841
@Override
	public int compareTo(Column o) {
		int diff = name.compareToIgnoreCase(o.name);
		if(diff!=0) return diff;
		return name.compareTo(o.name);
	}
289734
@Override
    public int compareTo(final AnnotationInfo o) {
        final int diff = getName().compareTo(o.getName());
        if (diff != 0) {
            return diff;
        }
        if (annotationParamValues == null && o.annotationParamValues == null) {
            return 0;
        } else if (annotationParamValues == null) {
            return -1;
        } else if (o.annotationParamValues == null) {
            return 1;
        } else {
            for (int i = 0, max = Math.max(annotationParamValues.size(),
                    o.annotationParamValues.size()); i < max; i++) {
                if (i >= annotationParamValues.size()) {
                    return -1;
                } else if (i >= o.annotationParamValues.size()) {
                    return 1;
                } else {
                    final int diff2 = annotationParamValues.get(i).compareTo(o.annotationParamValues.get(i));
                    if (diff2 != 0) {
                        return diff2;
                    }
                }
            }
        }
        return 0;
    }
637828
@Override
  public int compareTo(Flow otherFlow) {
    if (otherFlow == null) {
      return -1;
    }
    return new CompareToBuilder().append(this.key, otherFlow.getFlowKey())
        .toComparison();
  }
1211700
@Override
    public int compare(Object o1, Object o2) {
        return (o1.hashCode() - o2.hashCode());
    }
811817
@Override
    public int compareTo( AppIdNamespace other ) {
        int appidCompare = appId.compareTo( other.appId );
        if ( appidCompare == 0 ) {
            return namespace.compareTo( other.namespace );
        }
        return appidCompare;
    }
1223960
@Override
  public int compareTo(ID o) {
    JobID that = (JobID)o;
    int jtComp = this.jtIdentifier.compareTo(that.jtIdentifier);
    if(jtComp == 0) {
      return this.id - that.id;
    }
    else return jtComp;
  }
691901
@Override
    public int compareTo(Object obj) {
        if (!this.trusted)
            checkValidity();
        final ByteBuffer other = ((WsByteBuffer) obj).getWrappedByteBufferNonSafe();
        return this.oByteBuffer.compareTo(other);
    }
1087361
public static <T extends Comparable<T>> int checkCompare(T a, T b) {
        return a == null ?
                b == null ? 0 : -1 :
                    b == null ? 1 : a.compareTo(b);
      }
1017584
@Override
  public int compareTo(final SysEvent val) {
    if (val == null) {
      return 1;
    }
    return (sysCode.compareTo(val.sysCode));
  }
753783
@Override
	public int compareTo(JSONDocFieldWrapper o) {
		if(this.getOrder().equals(o.getOrder())) {
			return this.getField().getName().compareTo(o.getField().getName());
		} else {
			return this.getOrder() - o.getOrder();
		}
	}
490756
@Override
	public int compareTo(final Problem o) {
		final int ix = this.severity.ordinal();
		final int oid = o.severity.ordinal();
		return ix - oid;
	}
543591
@Override
    public int compareTo(Storage o) {
        return ComparisonChain.start()
                .compareTrueFirst(isConsistent(), o.isConsistent())  // Primaries *must* be consistent.
                .compareTrueFirst(_masterPrimary, o._masterPrimary)  // Master primary sorts first
                .compare(o.getPromotionId(), getPromotionId(), TimeUUIDs.ordering().nullsLast())  // Facade primary sorts first
                .compare(_uuid, o._uuid)  // Break ties in a way that's compatible with equals()
                .result();
    }
1090049
@Override
    public int compareTo(Object o) {
        HashCalculationResult myClass = (HashCalculationResult) o;
        return new CompareToBuilder()
                .append(this.fullHash, myClass.fullHash)
                .append(this.mostSigBitsHash, myClass.mostSigBitsHash)
                .append(this.leastSigBitsHash, myClass.leastSigBitsHash)
                .toComparison();
    }