/** */ private boolean addAllInIntersectionInternal(MutableSharedBitVectorIntSet other, IntSet filter) { if (other.sharedPart == null) { if (other.privatePart == null) { return false; } else { // other.sharedPart == null, other.privatePart != null return addAllInIntersectionInternal(other.privatePart, filter); } } else { // other.sharedPart != null if (sharedPart == other.sharedPart) { // no need to add in other.sharedPart if (other.privatePart == null) { return false; } else { return addAllInIntersectionInternal(other.privatePart, filter); } } else { MutableSharedBitVectorIntSet o = new MutableSharedBitVectorIntSet(other); o.intersectWith(filter); return addAll(o); } } }
/** */ private boolean addAllInIntersectionInternal(MutableSharedBitVectorIntSet other, IntSet filter) { if (other.sharedPart == null) { if (other.privatePart == null) { return false; } else { // other.sharedPart == null, other.privatePart != null return addAllInIntersectionInternal(other.privatePart, filter); } } else { // other.sharedPart != null if (sharedPart == other.sharedPart) { // no need to add in other.sharedPart if (other.privatePart == null) { return false; } else { return addAllInIntersectionInternal(other.privatePart, filter); } } else { MutableSharedBitVectorIntSet o = new MutableSharedBitVectorIntSet(other); o.intersectWith(filter); return addAll(o); } } }
/** */ private boolean addAllInIntersectionInternal(MutableSharedBitVectorIntSet other, IntSet filter) { if (other.sharedPart == null) { if (other.privatePart == null) { return false; } else { // other.sharedPart == null, other.privatePart != null return addAllInIntersectionInternal(other.privatePart, filter); } } else { // other.sharedPart != null if (sharedPart == other.sharedPart) { // no need to add in other.sharedPart if (other.privatePart == null) { return false; } else { return addAllInIntersectionInternal(other.privatePart, filter); } } else { MutableSharedBitVectorIntSet o = new MutableSharedBitVectorIntSet(other); o.intersectWith(filter); return addAll(o); } } }