Class BooleanSets.UnmodifiableSet

java.lang.Object
it.unimi.dsi.fastutil.booleans.BooleanSets.UnmodifiableSet
All Implemented Interfaces:
it.unimi.dsi.fastutil.booleans.BooleanCollection, it.unimi.dsi.fastutil.booleans.BooleanIterable, BooleanSet, Serializable, Iterable<Boolean>, Collection<Boolean>, Set<Boolean>
Enclosing class:
BooleanSets

public static class BooleanSets.UnmodifiableSet extends Object implements BooleanSet, Serializable
An unmodifiable wrapper class for sets.
See Also:
  • Field Details

    • collection

      protected final it.unimi.dsi.fastutil.booleans.BooleanCollection collection
  • Constructor Details

    • UnmodifiableSet

      protected UnmodifiableSet(BooleanSet s)
  • Method Details

    • remove

      public boolean remove(boolean k)
      Description copied from interface: BooleanSet
      Removes an element from this set.
      Specified by:
      remove in interface BooleanSet
      See Also:
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Collection<Boolean>
      Specified by:
      equals in interface Set<Boolean>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Collection<Boolean>
      Specified by:
      hashCode in interface Set<Boolean>
    • rem

      @Deprecated public boolean rem(boolean k)
      Deprecated.
      Description copied from interface: BooleanSet
      Removes an element from this set.

      This method is inherited from the type-specific collection this type-specific set is based on, but it should not used as this interface reinstates remove() as removal method.

      Specified by:
      rem in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Specified by:
      rem in interface BooleanSet
    • add

      public boolean add(boolean arg0)
      Specified by:
      add in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • size

      public int size()
      Specified by:
      size in interface Collection<Boolean>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<Boolean>
    • contains

      public boolean contains(boolean arg0)
      Specified by:
      contains in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • iterator

      public it.unimi.dsi.fastutil.booleans.BooleanIterator iterator()
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.booleans.BooleanIterable
      Specified by:
      iterator in interface Collection<Boolean>
      Specified by:
      iterator in interface Iterable<Boolean>
    • spliterator

      public it.unimi.dsi.fastutil.booleans.BooleanSpliterator spliterator()
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.booleans.BooleanIterable
      Specified by:
      spliterator in interface Collection<Boolean>
      Specified by:
      spliterator in interface Iterable<Boolean>
    • stream

      public Stream<Boolean> stream()
      Specified by:
      stream in interface Collection<Boolean>
    • parallelStream

      public Stream<Boolean> parallelStream()
      Specified by:
      parallelStream in interface Collection<Boolean>
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<Boolean>
    • toArray

      public <T> T[] toArray(T[] arg0)
      Specified by:
      toArray in interface Collection<Boolean>
    • toArray

      public Object[] toArray()
      Specified by:
      toArray in interface Collection<Boolean>
    • forEach

      public void forEach(it.unimi.dsi.fastutil.booleans.BooleanConsumer arg0)
      Specified by:
      forEach in interface it.unimi.dsi.fastutil.booleans.BooleanIterable
    • containsAll

      public boolean containsAll(Collection<?> arg0)
      Specified by:
      containsAll in interface Collection<Boolean>
    • addAll

      public boolean addAll(Collection<? extends Boolean> arg0)
      Specified by:
      addAll in interface Collection<Boolean>
    • removeAll

      public boolean removeAll(Collection<?> arg0)
      Specified by:
      removeAll in interface Collection<Boolean>
    • retainAll

      public boolean retainAll(Collection<?> arg0)
      Specified by:
      retainAll in interface Collection<Boolean>
    • removeIf

      public boolean removeIf(it.unimi.dsi.fastutil.booleans.BooleanPredicate arg0)
      Specified by:
      removeIf in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • add

      @Deprecated public boolean add(Boolean arg0)
      Deprecated.
      Specified by:
      add in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Specified by:
      add in interface Collection<Boolean>
    • contains

      @Deprecated public boolean contains(Object arg0)
      Deprecated.
      Specified by:
      contains in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Specified by:
      contains in interface Collection<Boolean>
    • remove

      @Deprecated public boolean remove(Object arg0)
      Deprecated.
      Specified by:
      remove in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Specified by:
      remove in interface Collection<Boolean>
    • toBooleanArray

      public boolean[] toBooleanArray()
      Specified by:
      toBooleanArray in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • toBooleanArray

      @Deprecated public boolean[] toBooleanArray(boolean[] arg0)
      Deprecated.
      Specified by:
      toBooleanArray in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • toArray

      public boolean[] toArray(boolean[] arg0)
      Specified by:
      toArray in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • containsAll

      public boolean containsAll(it.unimi.dsi.fastutil.booleans.BooleanCollection arg0)
      Specified by:
      containsAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • addAll

      public boolean addAll(it.unimi.dsi.fastutil.booleans.BooleanCollection arg0)
      Specified by:
      addAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • removeAll

      public boolean removeAll(it.unimi.dsi.fastutil.booleans.BooleanCollection arg0)
      Specified by:
      removeAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • retainAll

      public boolean retainAll(it.unimi.dsi.fastutil.booleans.BooleanCollection arg0)
      Specified by:
      retainAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • toString

      public String toString()
      Overrides:
      toString in class Object