Interface BooleanSet

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      default boolean add​(java.lang.Boolean o)
      Deprecated.
      Please use the corresponding type-specific method instead.
      default boolean contains​(java.lang.Object o)
      Deprecated.
      Please use the corresponding type-specific method instead.
      BooleanIterator iterator()
      Returns a type-specific iterator on the elements of this set.
      default boolean rem​(boolean k)
      Deprecated.
      Please use remove() instead.
      boolean remove​(boolean k)
      Removes an element from this set.
      default boolean remove​(java.lang.Object o)
      Deprecated.
      Please use the corresponding type-specific method instead.
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.util.Set

        addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, spliterator, toArray, toArray
    • Method Detail

      • iterator

        BooleanIterator 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 BooleanCollection
        Specified by:
        iterator in interface 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 interface java.util.Set<java.lang.Boolean>
        Returns:
        a type-specific iterator on the elements of this set.
        See Also:
        Iterable.iterator()
      • remove

        boolean remove​(boolean k)
        Removes an element from this set.

        Note that the corresponding method of a type-specific collection is rem(). This unfortunate situation is caused by the clash with the similarly named index-based method in the List interface.

        See Also:
        Collection.remove(Object)
      • remove

        @Deprecated
        default boolean remove​(java.lang.Object o)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        remove in interface BooleanCollection
        Specified by:
        remove in interface java.util.Collection<java.lang.Boolean>
        Specified by:
        remove in interface java.util.Set<java.lang.Boolean>
      • add

        @Deprecated
        default boolean add​(java.lang.Boolean o)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        add in interface BooleanCollection
        Specified by:
        add in interface java.util.Collection<java.lang.Boolean>
        Specified by:
        add in interface java.util.Set<java.lang.Boolean>
      • contains

        @Deprecated
        default boolean contains​(java.lang.Object o)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        contains in interface BooleanCollection
        Specified by:
        contains in interface java.util.Collection<java.lang.Boolean>
        Specified by:
        contains in interface java.util.Set<java.lang.Boolean>
      • rem

        @Deprecated
        default boolean rem​(boolean k)
        Deprecated.
        Please use remove() instead.
        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 BooleanCollection
        See Also:
        Collection.remove(Object)