@Override public void foreachExcluding(IntSet X, IntSetAction action) { impl.foreachExcluding(X, action); }
@Override public void foreachExcluding(IntSet X, IntSetAction action) { impl.foreachExcluding(X, action); }
@Override public void foreachExcluding(IntSet X, IntSetAction action) { impl.foreachExcluding(X, action); }
/** * Invoke an action on each element of the Set, excluding elements of Set X */ @Override public void foreachExcluding(IntSet X, IntSetAction action) { final Set<Integer> bits = HashSetFactory.make(); primaryImpl.foreachExcluding(X, x -> { assert !bits.contains(Integer.valueOf(x)); bits.add(Integer.valueOf(x)); }); secondaryImpl.foreachExcluding(X, x -> { assert bits.contains(Integer.valueOf(x)); bits.remove(Integer.valueOf(x)); }); assert bits.isEmpty(); primaryImpl.foreachExcluding(X, action); }
/** * Invoke an action on each element of the Set, excluding elements of Set X */ @Override public void foreachExcluding(IntSet X, IntSetAction action) { final Set<Integer> bits = HashSetFactory.make(); primaryImpl.foreachExcluding(X, x -> { assert !bits.contains(Integer.valueOf(x)); bits.add(Integer.valueOf(x)); }); secondaryImpl.foreachExcluding(X, x -> { assert bits.contains(Integer.valueOf(x)); bits.remove(Integer.valueOf(x)); }); assert bits.isEmpty(); primaryImpl.foreachExcluding(X, action); }
/** * Invoke an action on each element of the Set, excluding elements of Set X */ @Override public void foreachExcluding(IntSet X, IntSetAction action) { final Set<Integer> bits = HashSetFactory.make(); primaryImpl.foreachExcluding(X, x -> { assert !bits.contains(Integer.valueOf(x)); bits.add(Integer.valueOf(x)); }); secondaryImpl.foreachExcluding(X, x -> { assert bits.contains(Integer.valueOf(x)); bits.remove(Integer.valueOf(x)); }); assert bits.isEmpty(); primaryImpl.foreachExcluding(X, action); }
}; if (priorInstances != null) { rhs.getValue().foreachExcluding(priorInstances, action); priorInstances.addAll(rhs.getValue()); } else {
}; if (priorInstances != null) { rhs.getValue().foreachExcluding(priorInstances, action); priorInstances.addAll(rhs.getValue()); } else {