/* (non-Javadoc)
@see java.lang.Comparable#compareTo(java.lang.Object)
421850
@Override
    public int compareTo(ObserverMethod o) {
        if (o == null) {
            return 1;
        }
        Integer a = getPresedence(getMethod());
        Integer b = getPresedence(o.getMethod());
        return b.compareTo(a);
    }
1101608
@Override
    public int compareTo(final Id id) {
        return Integer.valueOf(this.id).compareTo(id.id);
    }
479063
@Override
	public int compareTo(ValueArray<DoubleValue> o) {
		DoubleValueArray other = (DoubleValueArray) o;

		int min = Math.min(position, other.position);
		for (int i = 0; i < min; i++) {
			int cmp = Double.compare(data[i], other.data[i]);

			if (cmp != 0) {
				return cmp;
			}
		}

		return Integer.compare(position, other.position);
	}
547406
public int compareTo(Object compareTo) throws ClassCastException {
		if (!(compareTo instanceof UUID)) {
			throw new ClassCastException();
		}
		return (Bytes.compareTo(rawBytes, ((UUID) compareTo).getRawBytes()));
	}
750753
@Override
	public int compareTo(News o) {
		int diff = o.getPubDate().compareTo(getPubDate());
		if(diff != 0) return diff;
		return getPage().compareTo(o.getPage());
	}
1052359
@Override
	public int compareTo(CharValue o) {
		final int other = o.value;
		return this.value < other ? -1 : this.value > other ? 1 : 0;
	}
445511
@SuppressWarnings("unchecked")
public int compareTo(Object object)
   {
      if(!(object instanceof Subject))
         return -1;
      
      Subject<T> subject = (Subject<T>)object;
      
      return this.name.compareTo(subject.getName());
   }
63845
@Override
    public int compareTo(final ModuleRef o) {
        final int diff = this.name.compareTo(o.name);
        return diff != 0 ? diff : this.hashCode() - o.hashCode();
    }
1289264
@Override
    public int compareTo(ComparableField o) {
        if (o instanceof XField) {
            return XFactory.compare((XField) this, (XField) o);
        }
        throw new ClassCastException("Don't know how to compare " + this.getClass().getName() + " to " + o.getClass().getName());

    }
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;
    }
887538
@Override
	public int compareTo(ValueArray<NullValue> o) {
		NullValueArray other = (NullValueArray) o;

		return Integer.compare(position, other.position);
	}
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();
    }
342285
@Override
    public int compareTo( GeoPt o ) {
        int latResult = ((Float) latitude).compareTo( o.latitude );
        if ( latResult != 0 ) {
            return latResult;
        }
        return ((Float) longitude).compareTo( o.longitude );
    }
500090
@Override
	public int compareTo(final AnnotationData pO) {
		return Integer.valueOf(index).compareTo(pO.getIndex());
	}
1165512
@Override
  public int compareTo(ShortWritable o) {
    short thisValue = this.value;
    short thatValue = (o).value;
    return (thisValue < thatValue ? -1 : (thisValue == thatValue ? 0 : 1));
  }
1352791
@Override
    public int compareTo(final MutableChar other) {
        return (this.value > other.value) ? 1 : ((this.value == other.value) ? 0 : -1);
    }
1106081
@Override
    public int compareTo(DetectedLanguage o) {
        int compare = Double.compare(o.probability, this.probability);
        if (compare!=0) return compare;
        return this.locale.toString().compareTo(o.locale.toString());
    }