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 intcursor()booleanhasNext()inthitCount()Tnext()protected booleannullOrNoFilterMatch(int idx)voidremove()voidreplace(T el)java.lang.StringtoString()
-
-
-
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:
hasNextin interfacejava.util.Iterator<T>
-
remove
public void remove()
- Specified by:
removein 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:
toStringin classjava.lang.Object
-
-