/** */ @Override public boolean addAllInIntersection(IntSet other, IntSet filter) { if (other instanceof DebuggingMutableIntSet && filter instanceof DebuggingMutableIntSet) { DebuggingMutableIntSet db = (DebuggingMutableIntSet) other; DebuggingMutableIntSet df = (DebuggingMutableIntSet) filter; boolean pr = primaryImpl.addAllInIntersection(db.primaryImpl, df.primaryImpl); boolean sr = secondaryImpl.addAllInIntersection(db.secondaryImpl, df.secondaryImpl); assert pr == sr; return pr; } else { Assertions.UNREACHABLE(); return false; } }
/** */ @Override public boolean addAllInIntersection(IntSet other, IntSet filter) { if (other instanceof DebuggingMutableIntSet && filter instanceof DebuggingMutableIntSet) { DebuggingMutableIntSet db = (DebuggingMutableIntSet) other; DebuggingMutableIntSet df = (DebuggingMutableIntSet) filter; boolean pr = primaryImpl.addAllInIntersection(db.primaryImpl, df.primaryImpl); boolean sr = secondaryImpl.addAllInIntersection(db.secondaryImpl, df.secondaryImpl); assert pr == sr; return pr; } else { Assertions.UNREACHABLE(); return false; } }
/** */ @Override public boolean addAllInIntersection(IntSet other, IntSet filter) { if (other instanceof DebuggingMutableIntSet && filter instanceof DebuggingMutableIntSet) { DebuggingMutableIntSet db = (DebuggingMutableIntSet) other; DebuggingMutableIntSet df = (DebuggingMutableIntSet) filter; boolean pr = primaryImpl.addAllInIntersection(db.primaryImpl, df.primaryImpl); boolean sr = secondaryImpl.addAllInIntersection(db.secondaryImpl, df.secondaryImpl); assert pr == sr; return pr; } else { Assertions.UNREACHABLE(); return false; } }
@Override public boolean addAllInIntersection(IntSet other, IntSet filter) { if (other instanceof BitVectorIntSet && !(impl instanceof BitVectorIntSet)) { // change the representation before performing the operation impl = new BitVectorIntSet(impl); } boolean result = impl.addAllInIntersection(other, filter); if (result) { maybeChangeRepresentation(); } return result; }
@Override public boolean addAllInIntersection(IntSet other, IntSet filter) { if (other instanceof BitVectorIntSet && !(impl instanceof BitVectorIntSet)) { // change the representation before performing the operation impl = new BitVectorIntSet(impl); } boolean result = impl.addAllInIntersection(other, filter); if (result) { maybeChangeRepresentation(); } return result; }
@Override public boolean addAllInIntersection(IntSet other, IntSet filter) { if (other instanceof BitVectorIntSet && !(impl instanceof BitVectorIntSet)) { // change the representation before performing the operation impl = new BitVectorIntSet(impl); } boolean result = impl.addAllInIntersection(other, filter); if (result) { maybeChangeRepresentation(); } return result; }
public boolean addAllInIntersection(IntSet other, IntSet filter) { if (V == null) { V = IntSetUtil.getDefaultIntSetFactory().makeCopy(other); V.intersectWith(filter); if (V.isEmpty()) { V = null; } return (V != null); } else { boolean result = V.addAllInIntersection(other, filter); return result; } }
public boolean addAllInIntersection(IntSet other, IntSet filter) { if (V == null) { V = IntSetUtil.getDefaultIntSetFactory().makeCopy(other); V.intersectWith(filter); if (V.isEmpty()) { V = null; } return (V != null); } else { boolean result = V.addAllInIntersection(other, filter); return result; } }
public boolean addAllInIntersection(IntSet other, IntSet filter) { if (V == null) { V = IntSetUtil.getDefaultIntSetFactory().makeCopy(other); V.intersectWith(filter); if (V.isEmpty()) { V = null; } return (V != null); } else { boolean result = V.addAllInIntersection(other, filter); return result; } }