Package org.jgroups.util
Class FastArray.FastIterator
- java.lang.Object
-
- org.jgroups.util.FastArray.FastIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected int
current_index
protected java.util.function.Predicate<T>
filter
protected int
hit_count
-
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
currentIndex()
boolean
hasNext()
int
hitCount()
T
next()
protected boolean
nullOrNoFilterMatch(int index)
void
remove()
void
replace(T el)
java.lang.String
toString()
-
-
-
Field Detail
-
current_index
protected int current_index
-
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)
-
currentIndex
public int currentIndex()
-
hitCount
public int hitCount()
-
nullOrNoFilterMatch
protected boolean nullOrNoFilterMatch(int index)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-