Class FastArray.FastIterator

  • All Implemented Interfaces:
    java.util.Iterator<T>
    Enclosing class:
    FastArray<T>

    public class FastArray.FastIterator
    extends java.lang.Object
    implements java.util.Iterator<T>
    • 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)  
    • 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 interface java.util.Iterator<T>
      • next

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

        public void remove()
        Specified by:
        remove in interface java.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 class java.lang.Object