public interface PositiveIntSet
Modifier and Type | Method and Description |
---|---|
boolean |
add(int key) |
void |
bulkAddTo(IntVector v)
add all elements in this set to the IntVector v as a bulk operation
|
void |
clear()
remove all members of the set
|
boolean |
contains(int key) |
int |
find(int element) |
int |
get(int position)
For FSBagIndex low level iterator use
DOESN"T WORK WITH INCREMENTING position VALUES
|
boolean |
isValid(int position)
For FSBagIndex low level iterator use
|
IntListIterator |
iterator() |
int |
moveToFirst()
For FSBagIndex low level iterator use
|
int |
moveToLast()
For FSBagIndex low level iterator use
|
int |
moveToNext(int position)
For FSBagIndex low level iterator use
|
int |
moveToPrevious(int position)
For FSBagIndex low level iterator use
|
boolean |
remove(int key) |
int |
size() |
int[] |
toIntArray() |
void clear()
boolean contains(int key)
key
- -boolean add(int key)
key
- -void bulkAddTo(IntVector v)
v
- - to be added toboolean remove(int key)
key
- -int size()
int[] toIntArray()
IntListIterator iterator()
int find(int element)
element
- an item which may be in the setint get(int position)
position
- - get the element at this position. This is for iterator use only, and is not related to any keyint moveToFirst()
int moveToLast()
int moveToNext(int position)
position
- -int moveToPrevious(int position)
position
- -boolean isValid(int position)
position
- -Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.