public class AtomicLongSet extends Object
Constructor and Description |
---|
AtomicLongSet() |
AtomicLongSet(int capacity)
Create a new set with the specified capacity.
|
Modifier and Type | Method and Description |
---|---|
void |
add(long value)
Adds the specified value to the set.
|
void |
clear()
Removes all elements in the set.
|
boolean |
contains(long value)
Returns true iff the set contains the specified value.
|
static int |
hash(long value)
From trove
|
int |
size()
Returns the number of elements stored in the set.
|
long[] |
toArray()
Returns the values in the set.
|
public AtomicLongSet()
public AtomicLongSet(int capacity)
capacity
- public boolean contains(long value)
value
- public void add(long value)
value
- public int size()
public long[] toArray()
public static int hash(long value)
value
- public void clear()
Copyright © 2018. All rights reserved.