Class ThreadContext.EmptyIterator<E>

java.lang.Object
org.apache.logging.log4j.ThreadContext.EmptyIterator<E>
Type Parameters:
E - the type of the empty iterator
All Implemented Interfaces:
Iterator<E>
Enclosing class:
ThreadContext

private static class ThreadContext.EmptyIterator<E> extends Object implements Iterator<E>
An empty iterator. Since Java 1.7 added the Collections.emptyIterator() method, we have to make do.
  • Constructor Details

    • EmptyIterator

      private EmptyIterator()
  • Method Details

    • hasNext

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

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

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