Package org.jgroups.util
Class FastArray.FastIterator
- java.lang.Object
-
- org.jgroups.util.FastArray.FastIterator
-
- All Implemented Interfaces:
java.util.Iterator<T>
- Direct Known Subclasses:
FastArray.FastListIterator
public class FastArray.FastIterator extends java.lang.Object implements java.util.Iterator<T>
-
-
Constructor Summary
Constructors Constructor Description FastIterator(java.util.function.Predicate<T> filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
cursor()
boolean
hasNext()
int
hitCount()
T
next()
protected boolean
nullOrNoFilterMatch(int idx)
void
remove()
void
replace(T el)
java.lang.String
toString()
-
-
-
Field Detail
-
cursor
protected int cursor
-
last_idx
protected int last_idx
-
filter
protected final java.util.function.Predicate<T> filter
-
hit_count
protected int hit_count
-
-
Constructor Detail
-
FastIterator
public FastIterator(java.util.function.Predicate<T> filter)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<T>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<T>
-
replace
public void replace(T el)
-
cursor
public int cursor()
-
hitCount
public int hitCount()
-
nullOrNoFilterMatch
protected boolean nullOrNoFilterMatch(int idx)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-