Class FastArray.FastIterator

java.lang.Object
org.jgroups.util.FastArray.FastIterator
All Implemented Interfaces:
Iterator<T>
Enclosing class:
FastArray<T>

public class FastArray.FastIterator extends Object implements Iterator<T>
  • Field Details

    • current_index

      protected int current_index
    • filter

      protected final Predicate<T> filter
    • hit_count

      protected int hit_count
  • Constructor Details

    • FastIterator

      public FastIterator(Predicate<T> filter)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>
    • replace

      public void replace(T el)
    • currentIndex

      public int currentIndex()
    • hitCount

      public int hitCount()
    • nullOrNoFilterMatch

      protected boolean nullOrNoFilterMatch(int index)
    • toString

      public String toString()
      Overrides:
      toString in class Object