Class FastArray.FastIterator

  • All Implemented Interfaces:
    java.util.Iterator<T>
    Direct Known Subclasses:
    FastArray.FastListIterator
    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 cursor  
      protected java.util.function.Predicate<T> filter  
      protected int hit_count  
      protected int last_idx  
    • Constructor Summary

      Constructors 
      Constructor Description
      FastIterator​(java.util.function.Predicate<T> filter)  
    • 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 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)
      • cursor

        public int cursor()
      • hitCount

        public int hitCount()
      • nullOrNoFilterMatch

        protected boolean nullOrNoFilterMatch​(int idx)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object