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.

        Note that this specification strengthens the one given in Iterable.iterator(), which was already strengthened in the corresponding type-specific class, but was weakened by the fact that this interface extends 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()