Interface ReferenceSet<K>

    • 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.
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, spliterator, toArray, toArray
    • 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 extends Set.

        Specified by:
        iterator in interface java.util.Collection<K>
        Specified by:
        iterator in interface java.lang.Iterable<K>
        Specified by:
        iterator in interface ObjectIterable<K>
        Specified by:
        iterator in interface ReferenceCollection<K>
        Specified by:
        iterator in interface java.util.Set<K>
        Returns:
        a type-specific iterator on the elements of this set.
        See Also:
        Iterable.iterator()