com.koloboke.collect.set
Interface ObjSet<E>
- All Superinterfaces:
- Collection<E>, Container, Iterable<E>, ObjCollection<E>, Set<E>
- All Known Subinterfaces:
- HashObjSet<E>
public interface ObjSet<E>
- extends ObjCollection<E>, Set<E>
A set of objects, the library's extension of the classic Set
interface.
Methods, declared in this interface (i. e. not inherited from the superinterfaces),
are present only to remove some compile-time ambiguities, they don't have any additional meaning
over the specifications from superinterfaces.
- See Also:
ObjSetFactory
,
@KolobokeSet
Methods inherited from interface Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray |
iterator
@Deprecated
@Nonnull
ObjIterator<E> iterator()
- Deprecated. Instead of explicit
iterator()
calls, use ObjCollection.cursor()
;
iterator()
is still sensible only as a backing mechanism for Java 5's for-each
statements.
- Returns a new iterator over this collection's elements.
- Specified by:
iterator
in interface Collection<E>
- Specified by:
iterator
in interface Iterable<E>
- Specified by:
iterator
in interface ObjCollection<E>
- Specified by:
iterator
in interface Set<E>
- Returns:
- a new iterator over this collection's elements
- See Also:
-
Comparison of iteration options in the library