Class SingleWriterHashSet.Iter<E>

  • All Implemented Interfaces:
    java.util.Iterator<E>
    Enclosing class:
    SingleWriterHashSet<E>

    private static class SingleWriterHashSet.Iter<E>
    extends java.lang.Object
    implements java.util.Iterator<E>
    • Field Detail

      • buffer

        private final E[] buffer
      • nextValIndex

        private int nextValIndex
      • lastValIndex

        private int lastValIndex
      • nextVal

        private E nextVal
      • lastVal

        private E lastVal
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<E>
      • next

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

        private void findNextVal()
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<E>