public override bool RemoveAll(LongIterable elements) { ++ModCount; //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final int prevSize = size(); int prevSize = Size(); elements.forEach(this.remove); return(prevSize != Size()); }
private void AssertContainsInOrder(LongIterable iterable, params long[] nodeIds) { assertThat(Arrays.asList(iterable.toArray()), contains(nodeIds)); }
private void AssertContains(LongIterable iterable, params long[] nodeIds) { assertEquals(newSetWith(nodeIds), LongSets.immutable.ofAll(iterable)); }
public override MutableLongSet WithoutAll(LongIterable elements) { RemoveAll(elements); return(this); }
public override MutableLongSet WithAll(LongIterable elements) { AddAll(elements); return(this); }
public override bool RetainAll(LongIterable elements) { throw new System.NotSupportedException(); }
public override MutableLongLongMap WithoutAllKeys(LongIterable keys) { keys.each(this.removeKey); return(this); }
private IEnumerable <Relationship> Map2Rels(LongIterable ids) { return(ids.asLazy().collect(this.relationship)); }
private IEnumerable <Node> Map2Nodes(LongIterable ids) { return(ids.asLazy().collect(id => new NodeProxy(_proxySpi, id))); }
internal AddedAndRemoved(LongIterable added, LongSet removed) { this.AddedConflict = added; this.RemovedConflict = removed; }