Package it.unimi.dsi.fastutil.objects
Interface ReferenceSet<K>
-
- All Superinterfaces:
java.util.Collection<K>
,java.lang.Iterable<K>
,ObjectIterable<K>
,ReferenceCollection<K>
,java.util.Set<K>
- All Known Subinterfaces:
ReferenceSortedSet<K>
- All Known Implementing Classes:
AbstractReferenceSet
,AbstractReferenceSortedSet
,ReferenceArraySet
,ReferenceLinkedOpenHashSet
,ReferenceOpenHashBigSet
,ReferenceOpenHashSet
,ReferenceSets.EmptySet
,ReferenceSets.Singleton
,ReferenceSets.SynchronizedSet
,ReferenceSets.UnmodifiableSet
,ReferenceSortedSets.EmptySet
,ReferenceSortedSets.Singleton
,ReferenceSortedSets.SynchronizedSortedSet
,ReferenceSortedSets.UnmodifiableSortedSet
public interface ReferenceSet<K> extends ReferenceCollection<K>, java.util.Set<K>
A type-specificSet
; provides some additional methods that use polymorphism to avoid (un)boxing.Additionally, this interface strengthens (again)
iterator()
.- See Also:
Set
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectIterator<K>
iterator()
Returns a type-specific iterator on the elements of this set.
-
-
-
Method Detail
-
iterator
ObjectIterator<K> iterator()
Returns a type-specific iterator on the elements of this set.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 extendsSet
.- Specified by:
iterator
in interfacejava.util.Collection<K>
- Specified by:
iterator
in interfacejava.lang.Iterable<K>
- Specified by:
iterator
in interfaceObjectIterable<K>
- Specified by:
iterator
in interfaceReferenceCollection<K>
- Specified by:
iterator
in interfacejava.util.Set<K>
- Returns:
- a type-specific iterator on the elements of this set.
- See Also:
Iterable.iterator()
-
-