nl: returns the ith digit of the id in base 2 ^ b . i = 0 returns the least significant digit . concode_field_sep BigInteger MAX_ID_VALUE concode_elem_sep BigInteger TWO concode_elem_sep BigInteger NUM_OF_DISTINCT_IDS concode_elem_sep int NUM_OF_DIGITS concode_elem_sep BigInteger id concode_field_sep int getTransmissionSize concode_elem_sep int indexOfMSDD concode_elem_sep int compareTo concode_elem_sep byte[] getBytes concode_elem_sep int hashCode concode_elem_sep BigInteger getUniqueValue concode_elem_sep boolean equals concode_elem_sep boolean isBetween concode_elem_sep BigInteger getMinAbsDistance concode_elem_sep String toString concode_elem_sep BigInteger getCwDistance concode_elem_sep PastryKey getCorrespondingKey concode_elem_sep BigInteger getCcwDistance
code: int function ( int arg0 ) { BigInteger loc0 ; int loc1 = arg0 * PastryConstants . ID_BASE_BIT_LENGTH ; loc0 = id . shiftRight ( loc1 ) ; loc0 = loc0 . mod ( TWO . pow ( PastryConstants . ID_BASE_BIT_LENGTH ) ) ; if ( loc0 . compareTo ( BigInteger . valueOf ( Integer . MAX_VALUE ) ) <= 0 ) return loc0 . intValue ( ) ; else return - 1 ; }