Class ShortIterators.UnmodifiableIterator

  • All Implemented Interfaces:
    ShortIterator, java.util.Iterator<java.lang.Short>
    Enclosing class:
    ShortIterators

    public static class ShortIterators.UnmodifiableIterator
    extends java.lang.Object
    implements ShortIterator
    An unmodifiable wrapper class for iterators.
    • Constructor Detail

      • UnmodifiableIterator

        public UnmodifiableIterator​(ShortIterator i)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.lang.Short>
      • nextShort

        public short nextShort()
        Description copied from interface: ShortIterator
        Returns the next element as a primitive type.
        Specified by:
        nextShort in interface ShortIterator
        Returns:
        the next element in the iteration.
        See Also:
        Iterator.next()