Class ArrayIterator<T>

java.lang.Object
org.jgroups.util.ArrayIterator<T>
All Implemented Interfaces:
Iterator<T>

public class ArrayIterator<T> extends Object implements Iterator<T>
Iterator over an array of elements of type T.
Since:
3.4
  • Field Details

    • index

      protected int index
    • elements

      protected final T[] elements
  • Constructor Details

    • ArrayIterator

      public ArrayIterator(T[] elements)
  • Method Details

    • hasNext

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

      public T next()
      Specified by:
      next in interface Iterator<T>