Class ByteCollections.IterableCollection

    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<java.lang.Byte>
        Specified by:
        size in class java.util.AbstractCollection<java.lang.Byte>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<java.lang.Byte>
        Overrides:
        isEmpty in class java.util.AbstractCollection<java.lang.Byte>
      • iterator

        public ByteIterator iterator()
        Description copied from interface: ByteCollection
        Returns a type-specific iterator on the elements of this collection.
        Specified by:
        iterator in interface ByteCollection
        Specified by:
        iterator in interface ByteIterable
        Specified by:
        iterator in interface java.util.Collection<java.lang.Byte>
        Specified by:
        iterator in interface java.lang.Iterable<java.lang.Byte>
        Specified by:
        iterator in class AbstractByteCollection
        Returns:
        a type-specific iterator on the elements of this collection.
        See Also:
        Iterable.iterator()
      • spliterator

        public ByteSpliterator spliterator()
        Description copied from interface: ByteCollection
        Returns a type-specific spliterator on the elements of this collection.

        See Collection.spliterator() for more documentation on the requirements of the returned spliterator.

        Specified by:
        spliterator in interface ByteCollection
        Specified by:
        spliterator in interface ByteIterable
        Specified by:
        spliterator in interface java.util.Collection<java.lang.Byte>
        Specified by:
        spliterator in interface java.lang.Iterable<java.lang.Byte>
        Returns:
        a type-specific spliterator on the elements of this collection.
      • intIterator

        public IntIterator intIterator()
        Description copied from interface: ByteCollection
        Returns a widened primitive iterator on the elements of this collection.

        This method is provided for the purpose of APIs that expect only the JDK's primitive iterators, of which there are only int, long, and double.

        Specified by:
        intIterator in interface ByteCollection
        Specified by:
        intIterator in interface ByteIterable
        Returns:
        a widened primitive iterator on the elements of this collection.
      • intSpliterator

        public IntSpliterator intSpliterator()
        Description copied from interface: ByteCollection
        Returns widened primitive spliterator on the elements of this collection.

        This method is provided for the purpose of APIs that expect only the JDK's primitive spliterators, of which there are only int, long, and double.

        Specified by:
        intSpliterator in interface ByteCollection
        Specified by:
        intSpliterator in interface ByteIterable
        Returns:
        a widened primitive spliterator on the elements of this collection.