it.unimi.dsi.fastutil.bytes
Class ByteCollections.IterableCollection

java.lang.Object
  extended by java.util.AbstractCollection<java.lang.Byte>
      extended by it.unimi.dsi.fastutil.bytes.AbstractByteCollection
          extended by it.unimi.dsi.fastutil.bytes.ByteCollections.IterableCollection
All Implemented Interfaces:
ByteCollection, ByteIterable, java.io.Serializable, java.lang.Iterable<java.lang.Byte>, java.util.Collection<java.lang.Byte>
Enclosing class:
ByteCollections

public static class ByteCollections.IterableCollection
extends AbstractByteCollection
implements java.io.Serializable

A collection wrapper class for iterables.

See Also:
Serialized Form

Method Summary
 ByteIterator byteIterator()
          Deprecated. 
 boolean isEmpty()
           
 ByteIterator iterator()
          Returns a type-specific iterator on the elements of this collection.
 int size()
           
 
Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteCollection
add, add, addAll, addAll, contains, contains, containsAll, containsAll, rem, rem, remove, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toByteArray, toByteArray, toString
 
Methods inherited from class java.util.AbstractCollection
clear
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
clear, equals, hashCode
 

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 AbstractByteCollection

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.lang.Iterable<java.lang.Byte>
Specified by:
iterator in interface java.util.Collection<java.lang.Byte>
Specified by:
iterator in class AbstractByteCollection
Returns:
a type-specific iterator on the elements of this collection.

byteIterator

@Deprecated
public ByteIterator byteIterator()
Deprecated. 

Description copied from class: AbstractByteCollection
Delegates to the new covariantly stronger generic method.

Specified by:
byteIterator in interface ByteCollection
Overrides:
byteIterator in class AbstractByteCollection
See Also:
ByteCollection.iterator()