Class ByteIterators.UnmodifiableIterator

  • All Implemented Interfaces:
    ByteIterator, java.util.Iterator<java.lang.Byte>
    Enclosing class:
    ByteIterators

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

      • UnmodifiableIterator

        public UnmodifiableIterator​(ByteIterator i)
    • Method Detail

      • hasNext

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

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