src/infinity/ecs/utils/BitArray.java
/**
	 * Checks if this BitArray intersects with the specified other BitArray. 
	 * 
	 * @param bitArray The BitArray which should be checked for intersection.
	 * @return True if both BitArrays intersect, otherwise false.
	 */
Checks if this BitArray intersects with the specified other BitArray.

@param bitArray The BitArray which should be checked for intersection.
@return True if both BitArrays intersect, otherwise false.
Checks if this BitArray intersects with the specified other BitArray . @param bitArray The BitArray which should be checked for intersection . @return True if both BitArrays intersect otherwise false .
public boolean intersects(BitArray bitArray) {
		int[] array1 = _array;
		int[] array2 = bitArray._array;
		int length = Math.min(array1.length, array2.length); 
		for (int i = 0; i < length; i++)
			if ((array1[i] & array2[i]) != 0)
				return true;
		return false;
	}
public boolean intersects ( BitArray bitArray ) { int [ ] array1 = _array ; int [ ] array2 = bitArray . _array ; int length = Math . min ( array1 . length , array2 . length ) ; for ( int i = 0 ; i < length ; i ++ ) if ( ( array1 [ i ] & array2 [ i ] ) != 0 ) return true ; return false ; }
Checks if this BitArray intersects with the specified other BitArray.
Checks if this BitArray intersects with the specified other BitArray .
// check for all fields that both arrays have in common if at least one bit is set in both
 // arrays. If thats the case, both arrays intersect, otherwise not.
 // safe some lookup time by getting references
 // if the binary AND of the integers has another value than zero, at least one bit
 // was set in both arrays
