Interface LongSet

    • Method Detail

      • remove

        boolean remove​(long 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)
      • rem

        @Deprecated
        default boolean rem​(long 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 LongCollection
        See Also:
        Collection.remove(Object)
      • of

        @SafeVarargs
        static LongSet of​(long... a)
        Creates a new set using a list of elements.
        Parameters:
        a - a list of elements that will be used to initialize the new set.