Class SingleElementIterator<T>

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

    public class SingleElementIterator<T>
    extends com.carrotsearch.hppc.AbstractIterator<T>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected T fetch()  
      • Methods inherited from class com.carrotsearch.hppc.AbstractIterator

        done, hasNext, next, remove
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • SingleElementIterator

        public SingleElementIterator​(T element)
    • Method Detail

      • fetch

        protected T fetch()
        Specified by:
        fetch in class com.carrotsearch.hppc.AbstractIterator<T>