Class BooleanCollections.IterableCollection

java.lang.Object
java.util.AbstractCollection<java.lang.Boolean>
it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
it.unimi.dsi.fastutil.booleans.BooleanCollections.IterableCollection
All Implemented Interfaces:
BooleanCollection, it.unimi.dsi.fastutil.booleans.BooleanIterable, java.io.Serializable, java.lang.Iterable<java.lang.Boolean>, java.util.Collection<java.lang.Boolean>
Enclosing class:
BooleanCollections

public static class BooleanCollections.IterableCollection
extends AbstractBooleanCollection
implements java.io.Serializable
A collection wrapper class for iterables.
See Also:
Serialized Form
  • Method Details

    • size

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

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

      public it.unimi.dsi.fastutil.booleans.BooleanIterator iterator()
      Description copied from interface: BooleanCollection
      Returns a type-specific iterator on the elements of this collection.
      Specified by:
      iterator in interface BooleanCollection
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.booleans.BooleanIterable
      Specified by:
      iterator in interface java.util.Collection<java.lang.Boolean>
      Specified by:
      iterator in interface java.lang.Iterable<java.lang.Boolean>
      Specified by:
      iterator in class AbstractBooleanCollection
      Returns:
      a type-specific iterator on the elements of this collection.
    • spliterator

      public BooleanSpliterator spliterator()
      Description copied from interface: BooleanCollection
      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 BooleanCollection
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.booleans.BooleanIterable
      Specified by:
      spliterator in interface java.util.Collection<java.lang.Boolean>
      Specified by:
      spliterator in interface java.lang.Iterable<java.lang.Boolean>
      Returns:
      a type-specific spliterator on the elements of this collection.