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

Method Summary
 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.
 
Methods inherited from interface com.koloboke.collect.ObjCollection
cursor, equivalence, forEach, forEachWhile, removeIf
 
Methods inherited from interface com.koloboke.collect.Container
clear, ensureCapacity, isEmpty, shrink, size, sizeAsLong
 
Methods inherited from interface Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

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