Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
 private void AssertContainsInOrder(LongIterable iterable, params long[] nodeIds)
 {
     assertThat(Arrays.asList(iterable.toArray()), contains(nodeIds));
 }
Exemplo n.º 3
0
 private void AssertContains(LongIterable iterable, params long[] nodeIds)
 {
     assertEquals(newSetWith(nodeIds), LongSets.immutable.ofAll(iterable));
 }
Exemplo n.º 4
0
 public override MutableLongSet WithoutAll(LongIterable elements)
 {
     RemoveAll(elements);
     return(this);
 }
Exemplo n.º 5
0
 public override MutableLongSet WithAll(LongIterable elements)
 {
     AddAll(elements);
     return(this);
 }
Exemplo n.º 6
0
 public override bool RetainAll(LongIterable elements)
 {
     throw new System.NotSupportedException();
 }
Exemplo n.º 7
0
 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)));
 }
Exemplo n.º 10
0
 internal AddedAndRemoved(LongIterable added, LongSet removed)
 {
     this.AddedConflict   = added;
     this.RemovedConflict = removed;
 }