com.carrotsearch.hppcrt.BooleanCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hppcrt Show documentation
Show all versions of hppcrt Show documentation
High Performance Primitive Collections Realtime
(fork of HPPC of Carrotsearch)
Fundamental data structures (maps, sets, lists, stacks, queues, heaps, sorts) generated for
combinations of object and primitive types to conserve JVM memory and speed
up execution. The Realtime fork intend of extending collections while tweaking and optimizations to remove any dynamic allocations at runtime,
and low variance execution times.
package com.carrotsearch.hppcrt;
import com.carrotsearch.hppcrt.predicates.BooleanPredicate;
/**
* A collection allows basic, efficient operations on sets of elements
* (difference and intersection).
*/
@javax.annotation.Generated(date = "2015-02-27T19:21:18+0100", value = "HPPC-RT generated from: BooleanCollection.java")
public interface BooleanCollection extends BooleanContainer
{
/**
* Removes all occurrences of e
from this collection.
*
* @param e Element to be removed from this collection, if present.
* @return The number of removed elements as a result of this call.
*/
int removeAllOccurrences(boolean e);
/**
* Removes 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 difference.
*
* @return Returns the number of removed elements.
*/
int removeAll(BooleanLookupContainer c);
/**
* Removes all elements in this collection for which the
* given predicate returns true
.
*
* @return Returns the number of removed elements.
*/
int removeAll(BooleanPredicate predicate);
/**
* 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.
*
* @return Returns the number of removed elements.
*/
int retainAll(BooleanLookupContainer c);
/**
* Keeps all elements in this collection for which the
* given predicate returns true
.
*
* @return Returns the number of removed elements.
*/
int retainAll(BooleanPredicate predicate);
/**
* Removes all elements from this collection.
*/
void clear();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy