protected static class LongHashSet.Synchronized extends LongHashSet
LongHashSet.SynchronizedDEFAULT_CAPACITY| Constructor and Description |
|---|
Synchronized(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long key)
Adds the given value to the set.
|
void |
clear() |
boolean |
contains(long key) |
long[] |
keys()
Returns all keys in no particular order.
|
boolean |
remove(long key)
Removes the given value to the set.
|
void |
reserveRoom(int entryCount)
Target load: 0,6
|
void |
setCapacity(int newCapacity) |
createSynchronized, createSynchronized, setLoadFactor, sizepublic boolean contains(long key)
contains in class LongHashSetpublic boolean add(long key)
LongHashSetadd in class LongHashSetpublic boolean remove(long key)
LongHashSetremove in class LongHashSetpublic long[] keys()
LongHashSetkeys in class LongHashSetpublic void clear()
clear in class LongHashSetpublic void setCapacity(int newCapacity)
setCapacity in class LongHashSetpublic void reserveRoom(int entryCount)
LongHashSetreserveRoom in class LongHashSetAvailable under the Apache License, Version 2.0 - Copyright © 2012-2016 greenrobot.org. All Rights Reserved.