@Override
    public int compareTo(final NodeID that) {

        // Fail fast
        if (that == this) {
            return 0;
        } else if (null == that) {
            return -1;
        }

        // Delegate to internal state
        return this.getId().compareTo(that.getId());
    }
@Override
    public int compareTo(final NodeID that) {

        
        if (that == this) {
            return 0;
        } else if (null == that) {
            return -1;
        }

        
        return this.getId().compareTo(that.getId());
    }
@ Override public int compareTo ( final NodeID that ) { // Fail fast if ( that == this ) { return 0 ; } else if ( null == that ) { return - 1 ; } // Delegate to internal state return this . getId ( ) . compareTo ( that . getId ( ) ) ; }
Compares the supplied NodeID to this one.

@param that A NodeID to compare to this one.
@return THe difference in
Compares the supplied NodeID to this one .