@NonNull private TreeSet<Timepoint> getExclusiveSelectableTimes(@NonNull TreeSet<Timepoint> selectable, @NonNull TreeSet<Timepoint> disabled) { TreeSet<Timepoint> output = new TreeSet<>(selectable); output.removeAll(disabled); return output; }
@Override public boolean removeAll(Collection c) { if (c instanceof StructSet) { return removeAll((StructSet) c); } return super.removeAll(c); }
private void removeUnusedChunks(TreeSet<Long> removedPages) { int size = removedPages.size(); for (BTreeChunk c : findUnusedChunks(removedPages)) { c.fileStorage.close(); c.fileStorage.delete(); chunks.remove(c.id); chunkIds.clear(c.id); removedPages.removeAll(c.pagePositions); } if (size > removedPages.size()) { writeChunkMetaData(lastChunk.id, removedPages); } }
unsupportedClasses.removeAll(support.allowedClasses); unsupportedClasses.addAll(support.bannedClasses); support.allowedClasses.forEach(unsupportedMembers::removeAll);
trackedCols.removeAll(overlapping); for (CTCol existing : overlapping) {
notInitializedInConstructors.retainAll(data.writtenNonNullFields); notInitializedInConstructors.retainAll(data.assumedNonNull.keySet()); notInitializedInConstructors.removeAll(data.writtenInConstructorFields); notInitializedInConstructors.removeAll(data.writtenInInitializationFields); readOnlyFields.removeAll(data.writtenFields); nullOnlyFields.removeAll(data.writtenNonNullFields); readOnlyFields.removeAll(assumeReflective); nullOnlyFields.removeAll(assumeReflective); notInitializedInConstructors.removeAll(assumeReflective);
boolean changed = false; if (mCurrentTags.containsAll(mTagsArrayAdapter.mTagsList)) { mCurrentTags.removeAll(mTagsArrayAdapter.mTagsList); changed = true; } else {
public void addRange(Range<T> range) { if (range.isEmpty()) { return; } List<Range<T>> overlapping = getOverlappingRanges(range); if (overlapping != null && !overlapping.isEmpty()) { ranges.removeAll(overlapping); Range combined = range; for (Range r : overlapping) { combined = combined.union(r); } ranges.add(combined); } else { ranges.add(range); } }
static synchronized void listInstances(String keepers, boolean printAll, boolean printErrors) { errors = 0; System.out.println("INFO : Using ZooKeepers " + keepers); ZooReader rdr = new ZooReader(keepers, ZOOKEEPER_TIMER_MILLIS); ZooCache cache = new ZooCache(keepers, ZOOKEEPER_TIMER_MILLIS); TreeMap<String,UUID> instanceNames = getInstanceNames(rdr, printErrors); System.out.println(); printHeader(); for (Entry<String,UUID> entry : instanceNames.entrySet()) { printInstanceInfo(cache, entry.getKey(), entry.getValue(), printErrors); } TreeSet<UUID> instancedIds = getInstanceIDs(rdr, printErrors); instancedIds.removeAll(instanceNames.values()); if (printAll) { for (UUID uuid : instancedIds) { printInstanceInfo(cache, null, uuid, printErrors); } } else if (instancedIds.size() > 0) { System.out.println(); System.out.println("INFO : " + instancedIds.size() + " unamed instances were not printed, run with --print-all to see all instances"); } else { System.out.println(); } if (!printErrors && errors > 0) { System.err.println( "WARN : There were " + errors + " errors, run with --print-errors to see more info"); } }
/** * * @return list of undefined variables (repeats removed) */ public TreeSet<String> getResult() { tree.removeAll(localTree); return tree; }
@Override public boolean removeAll(Collection paramCollection) { if (_directAccess) { return super.removeAll(paramCollection); } return ProxyCollections.removeAll(this, paramCollection); }
@Override public boolean removeAll(Collection paramCollection) { if (_directAccess) { return super.removeAll(paramCollection); } return ProxyCollections.removeAll(this, paramCollection); }
@Override public boolean removeAll(Collection paramCollection) { if (_directAccess) { return super.removeAll(paramCollection); } return ProxyCollections.removeAll(this, paramCollection); }
@Override public boolean removeAll(Collection paramCollection) { if (_directAccess) { return super.removeAll(paramCollection); } return ProxyCollections.removeAll(this, paramCollection); }
@Override public boolean removeAll(Collection c) { if (c instanceof StructSet) { return removeAll((StructSet) c); } return super.removeAll(c); }
/** * @param e steiner edge to be removed */ public void deleteEdge(SteinerEdge e){ Set<SteinerEdge> badEdges= new TreeSet<>(); for(SteinerEdge e1: edges) if(e1.sinkNode.equals(e.sinkNode)&& e1.sourceNode.equals(e.sourceNode)) badEdges.add(e1); edges.removeAll(badEdges); }
/** * Computes (this ^ that) in GF(2^k) */ public Polynomial xor(Polynomial that) { TreeSet<BigInteger> dgrs0 = this.createDegreesCollectionCopy(); dgrs0.removeAll(that.degrees); TreeSet<BigInteger> dgrs1 = that.createDegreesCollectionCopy(); dgrs1.removeAll(this.degrees); dgrs1.addAll(dgrs0); return new Polynomial(dgrs1); }
public void markProcessedNotifications(final List<NotificationEventModelDao> toBeremoved, final List<NotificationEventModelDao> toBeAdded) { synchronized (notifications) { notifications.removeAll(toBeremoved); notifications.addAll(toBeAdded); } }
@Override public void deselectRows(List<? extends ITableRow> rows) { rows = resolveRows(rows); if (CollectionUtility.hasElements(rows)) { TreeSet<ITableRow> newSelection = new TreeSet<>(new RowIndexComparator()); newSelection.addAll(m_selectedRows); if (newSelection.removeAll(rows)) { m_selectedRows = new ArrayList<>(newSelection); fireRowsSelected(m_selectedRows); } } }