public boolean remove ( long key ) { int index = ( ( ( ( int ) ( key >>> 32 ) ) ^ ( ( int ) ( key ) ) ) & 0x7fffffff ) % capacity ; Entry previous = null ; Entry entry = table [ index ] ; while ( entry != null ) { Entry next = entry . next ; if ( entry . key == key ) { if ( previous == null ) { table [ index ] = next ; } else { previous . next = next ; } size -- ; return true ; } previous = entry ; entry = next ; } return false ; }
Removes the given value to the set .