src/infinity/ecs/utils/BitArray.java
/**
	 * Checks of this BitArray contains the specified other BitArray. This means that every bit
	 * that is set in the other arrays needs to be also set in this array.
	 * 
	 * @param bitArray The BitArrays which should be checked.
	 * @return true if this array contains the other array, otherwise false
	 */
Checks of this BitArray contains the specified other BitArray. This means that every bit
that is set in the other arrays needs to be also set in this array.

@param bitArray The BitArrays which should be checked.
@return true if this array contains the other array, otherwise false
Checks of this BitArray contains the specified other BitArray . This means that every bit that is set in the other arrays needs to be also set in this array . @param bitArray The BitArrays which should be checked . @return true if this array contains the other array otherwise false
public boolean contains(BitArray bitArray) {
		int[] array1 = _array;
		int[] array2 = bitArray._array;
		int l1 = array1.length;
		int l2 = array2.length;
		int lMin = Math.min(l1, l2);
		int i = 0;
		for (; i < lMin; i++) {
			int t = array2[i];
			if ((array1[i] & t) != t) {
				return false;
			}
		}
		for (; i < l2; i++) {
			if (array2[i] != 0) {
				return false;
			}
		}
		return true;
	}
public boolean contains ( BitArray bitArray ) { int [ ] array1 = _array ; int [ ] array2 = bitArray . _array ; int l1 = array1 . length ; int l2 = array2 . length ; int lMin = Math . min ( l1 , l2 ) ; int i = 0 ; for ( ; i < lMin ; i ++ ) { int t = array2 [ i ] ; if ( ( array1 [ i ] & t ) != t ) { return false ; } } for ( ; i < l2 ; i ++ ) { if ( array2 [ i ] != 0 ) { return false ; } } return true ; }
Checks of this BitArray contains the specified other BitArray.
Checks of this BitArray contains the specified other BitArray .
// safe some lookup time by getting references
 // to check, if all set bits from the other array are also set in this  array, each integer
 // which is index is part of both arrays is AND  conjuncted. If the result of the
 // conjunction is the same as the  corresponding integer from the other array,this array
 // contains all  the set bits.
 // if this array is the same length or longer than the other array,  and the above
 // comparisons were all true, than the comparison is finished.
 // otherwise all integers of the other array that are above the size  of this array need
 // to be checked. If they contain any set bits, the whole comparison is false. 
 // if this comparison is also true, this array contains the other array
