it.unimi.dsi.fastutil.bytes
Class ByteCollections.IterableCollection
java.lang.Object
java.util.AbstractCollection<Byte>
it.unimi.dsi.fastutil.bytes.AbstractByteCollection
it.unimi.dsi.fastutil.bytes.ByteCollections.IterableCollection
- All Implemented Interfaces:
- ByteCollection, ByteIterable, Serializable, Iterable<Byte>, Collection<Byte>
- Enclosing class:
- ByteCollections
public static class ByteCollections.IterableCollection
- extends AbstractByteCollection
- implements Serializable
A collection wrapper class for iterables.
- See Also:
- Serialized Form
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 |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
iterable
protected final ByteIterable iterable
ByteCollections.IterableCollection
protected ByteCollections.IterableCollection(ByteIterable iterable)
size
public int size()
- Specified by:
size
in interface Collection<Byte>
- Specified by:
size
in class AbstractCollection<Byte>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection<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 Iterable<Byte>
- Specified by:
iterator
in interface Collection<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()
Copyright © 2011. All Rights Reserved.