Class IterableObject<T>

    • Constructor Detail

      • IterableObject

        public IterableObject​(T o)
    • Method Detail

      • iterator

        public Iterator<T> iterator()
        Returns an iterator over a set of elements of type T.
        Specified by:
        iterator in interface Iterable<T>
        Returns:
        an Iterator.
      • hasNext

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

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

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