public static class ShortCollections.IterableCollection extends AbstractShortCollection implements Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty() |
ShortIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
ShortIterator |
shortIterator()
Deprecated.
|
int |
size() |
add, add, addAll, addAll, contains, contains, containsAll, containsAll, rem, rem, remove, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toShortArray, toShortArray, toString
clear
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, equals, hashCode
public int size()
size
in interface Collection<Short>
size
in class AbstractCollection<Short>
public boolean isEmpty()
isEmpty
in interface Collection<Short>
isEmpty
in class AbstractShortCollection
public ShortIterator iterator()
ShortCollection
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
.
iterator
in interface ShortCollection
iterator
in interface ShortIterable
iterator
in interface Iterable<Short>
iterator
in interface Collection<Short>
iterator
in class AbstractShortCollection
@Deprecated public ShortIterator shortIterator()
AbstractShortCollection
shortIterator
in interface ShortCollection
shortIterator
in class AbstractShortCollection
ShortCollection.iterator()