public class ConcurrentLongHashSet extends Object
Items MUST be >= 0.
Modifier and Type | Class and Description |
---|---|
static interface |
ConcurrentLongHashSet.ConsumerLong |
Constructor and Description |
---|
ConcurrentLongHashSet() |
ConcurrentLongHashSet(int expectedItems) |
ConcurrentLongHashSet(int expectedItems,
int numSections) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(long item) |
long |
capacity() |
void |
clear() |
boolean |
contains(long item) |
void |
forEach(ConcurrentLongHashSet.ConsumerLong processor) |
boolean |
isEmpty() |
Set<Long> |
items() |
boolean |
remove(long item)
Remove an existing entry if found
|
int |
size() |
public ConcurrentLongHashSet()
public ConcurrentLongHashSet(int expectedItems)
public ConcurrentLongHashSet(int expectedItems, int numSections)
public int size()
public long capacity()
public boolean isEmpty()
public boolean contains(long item)
public boolean add(long item)
public boolean remove(long item)
item
- public void clear()
public void forEach(ConcurrentLongHashSet.ConsumerLong processor)
Copyright © 2018 JBoss by Red Hat. All rights reserved.