private long getIndex ( T x , T y ) { int i = elementIndices . index ( x ) ; int j = elementIndices . index ( y ) ; long index = ( ( ( long ) i ) << 32 ) | j ; return index ; }
Returns the concatenated index of the two elements .