Documentation of 'com.carrotsearch.hppc.ObjectCollection' Java class
ObjectCollection
com.carrotsearch.hppc

Interface ObjectCollection<KType>

    • Method Detail

      • removeAll

        int removeAll(KType e)
        Removes all occurrences of e from this collection.
        Parameters:
        e - Element to be removed from this collection, if present.
        Returns:
        The number of removed elements as a result of this call.
      • removeAll

        int removeAll(ObjectLookupContainer<? super KType> c)
        Removes all elements in this collection that are present in c.
        Returns:
        Returns the number of removed elements.
      • removeAll

        int removeAll(ObjectPredicate<? super KType> predicate)
        Removes all elements in this collection for which the given predicate returns true.
        Returns:
        Returns the number of removed elements.
      • retainAll

        int retainAll(ObjectLookupContainer<? super KType> c)
        Keeps all elements in this collection that are present in c. Runs in time proportional to the number of elements in this collection. Equivalent of sets intersection.
        Returns:
        Returns the number of removed elements.
      • retainAll

        int retainAll(ObjectPredicate<? super KType> predicate)
        Keeps all elements in this collection for which the given predicate returns true.
        Returns:
        Returns the number of removed elements.
      • clear

        void clear()
        Removes all elements from this collection.
        See Also:
        release()
      • release

        void release()
        Removes all elements from the collection and additionally releases any internal buffers. Typically, if the object is to be reused, a simple clear() should be a better alternative since it'll avoid reallocation.
        See Also:
        clear()

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.