Class ObjectCollections.IterableCollection<K>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isEmpty()  
      ObjectIterator<K> iterator()
      Returns a type-specific iterator on the elements of this collection.
      int size()  
      ObjectSpliterator<K> spliterator()
      Returns a type-specific spliterator on the elements of this collection.
      • Methods inherited from class java.util.AbstractCollection

        add, addAll, clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArray
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        add, addAll, clear, contains, containsAll, equals, hashCode, parallelStream, remove, removeAll, removeIf, retainAll, stream, toArray, toArray, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<K>
        Specified by:
        size in class java.util.AbstractCollection<K>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<K>
        Overrides:
        isEmpty in class java.util.AbstractCollection<K>
      • spliterator

        public ObjectSpliterator<K> spliterator()
        Description copied from interface: ObjectCollection
        Returns a type-specific spliterator on the elements of this collection.

        See Collection.spliterator() for more documentation on the requirements of the returned spliterator.

        Specified by:
        spliterator in interface java.util.Collection<K>
        Specified by:
        spliterator in interface java.lang.Iterable<K>
        Specified by:
        spliterator in interface ObjectCollection<K>
        Specified by:
        spliterator in interface ObjectIterable<K>
        Returns:
        a type-specific spliterator on the elements of this collection.