Package org.roaringbitmap.buffer
Class ReverseMappeableBitmapContainerCharIterator
- java.lang.Object
-
- org.roaringbitmap.buffer.ReverseMappeableBitmapContainerCharIterator
-
- All Implemented Interfaces:
java.lang.Cloneable
,CharIterator
final class ReverseMappeableBitmapContainerCharIterator extends java.lang.Object implements CharIterator
-
-
Field Summary
Fields Modifier and Type Field Description private static int
len
private MappeableBitmapContainer
parent
private long
w
(package private) int
x
-
Constructor Summary
Constructors Constructor Description ReverseMappeableBitmapContainerCharIterator()
ReverseMappeableBitmapContainerCharIterator(MappeableBitmapContainer p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharIterator
clone()
Creates a copy of the iterator.boolean
hasNext()
char
next()
int
nextAsInt()
void
remove()
If possible, remove the current valuevoid
wrap(MappeableBitmapContainer p)
-
-
-
Field Detail
-
len
private static final int len
- See Also:
- Constant Field Values
-
w
private long w
-
x
int x
-
parent
private MappeableBitmapContainer parent
-
-
Constructor Detail
-
ReverseMappeableBitmapContainerCharIterator
ReverseMappeableBitmapContainerCharIterator()
-
ReverseMappeableBitmapContainerCharIterator
ReverseMappeableBitmapContainerCharIterator(MappeableBitmapContainer p)
-
-
Method Detail
-
clone
public CharIterator clone()
Description copied from interface:CharIterator
Creates a copy of the iterator.- Specified by:
clone
in interfaceCharIterator
- Overrides:
clone
in classjava.lang.Object
- Returns:
- a clone of the current iterator
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceCharIterator
- Returns:
- whether there is another value
-
next
public char next()
- Specified by:
next
in interfaceCharIterator
- Returns:
- next char value
-
nextAsInt
public int nextAsInt()
- Specified by:
nextAsInt
in interfaceCharIterator
- Returns:
- next short value as int value (using the least significant 16 bits)
-
remove
public void remove()
Description copied from interface:CharIterator
If possible, remove the current value- Specified by:
remove
in interfaceCharIterator
-
wrap
public void wrap(MappeableBitmapContainer p)
-
-