@ 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 .