public interface IndexBag
Modifier and Type | Method and Description |
---|---|
void |
addIndex(long index)
Adds an index to this bag.
|
long |
getCount()
Returns the number of distinct indices in this bag.
|
boolean |
hasIndex(long index)
Indicates whether the given index has previously been added to this bag.
|
PrimitiveIterator.OfLong |
sortedLongIterator()
Returns an iterator over all the integers added to this bag,
supplied in ascending order.
|
void addIndex(long index)
If the index is outside of the range permitted by this bag, behaviour is undefined.
index
- integer to addboolean hasIndex(long index)
If the index is outside of the range permitted by this bag, behaviour is undefined.
index
- integer to checkPrimitiveIterator.OfLong sortedLongIterator()
long getCount()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.