|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A type-specific Collection
; provides some additional methods
that use polymorphism to reduce type juggling.
Note that iterators provided by classes implementing this interface must be type specific.
Collection
Method Summary | |
ObjectIterator |
objectIterator()
Returns a type-specific iterator on the collection. |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
public ObjectIterator objectIterator()
The iterator returned by the Collection.iterator()
method and by this
method are identical; however, using this method you can save a type casting.
Collection.iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |