longs
618619620621622623624625626
private final LongCursor cursor; private int remaining; public DescendingValueIterator() { cursor = new LongCursor(); cursor.index = tail; this.remaining = size(); }
580581582583584585586587588
private final LongCursor cursor; private int remaining; public ValueIterator() { cursor = new LongCursor(); cursor.index = oneLeft(head, buffer.length); this.remaining = size(); }
622623624625626627628629630
private final LongCursor cursor; private int remaining; public DescendingIterator() { cursor = new LongCursor(); cursor.index = tail; this.remaining = size(); }
946947948949950951952953954955956
@Override public Iterator<LongCursor> iterator() { return new Iterator<LongCursor>() { private long nextBitSet = BitSet.this.nextSetBit(0); private final LongCursor cursor = new LongCursor(); @Override public boolean hasNext() { return nextBitSet >= 0;
182183184185186187188189190191192
i = jre.nextSetBit(0); Iterator<LongCursor> llcCursor = llc.iterator(); while (i >= 0) { assertTrue(llcCursor.hasNext()); LongCursor c = llcCursor.next(); assertEquals(i, c.index); assertEquals(i, c.value); i = jre.nextSetBit(i + 1); }
591592593594595596597598599
590591592593594595596597598
617618619620621622623624625
954955956957958959960961962963964