Class LongHashSet.Synchronized
- java.lang.Object
-
- org.greenrobot.essentials.collections.LongHashSet
-
- org.greenrobot.essentials.collections.LongHashSet.Synchronized
-
- Enclosing class:
- LongHashSet
protected static class LongHashSet.Synchronized extends LongHashSet
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.greenrobot.essentials.collections.LongHashSet
LongHashSet.Entry, LongHashSet.Synchronized
-
-
Field Summary
-
Fields inherited from class org.greenrobot.essentials.collections.LongHashSet
DEFAULT_CAPACITY
-
-
Constructor Summary
Constructors Constructor Description Synchronized(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(long key)Adds the given value to the set.voidclear()booleancontains(long key)long[]keys()Returns all keys in no particular order.booleanremove(long key)Removes the given value to the set.voidreserveRoom(int entryCount)Target load: 0,6voidsetCapacity(int newCapacity)-
Methods inherited from class org.greenrobot.essentials.collections.LongHashSet
createSynchronized, createSynchronized, setLoadFactor, size
-
-
-
-
Method Detail
-
contains
public boolean contains(long key)
- Overrides:
containsin classLongHashSet
-
add
public boolean add(long key)
Description copied from class:LongHashSetAdds the given value to the set.- Overrides:
addin classLongHashSet- Returns:
- true if the value was actually new
-
remove
public boolean remove(long key)
Description copied from class:LongHashSetRemoves the given value to the set.- Overrides:
removein classLongHashSet- Returns:
- true if the value was actually removed
-
keys
public long[] keys()
Description copied from class:LongHashSetReturns all keys in no particular order.- Overrides:
keysin classLongHashSet
-
clear
public void clear()
- Overrides:
clearin classLongHashSet
-
setCapacity
public void setCapacity(int newCapacity)
- Overrides:
setCapacityin classLongHashSet
-
reserveRoom
public void reserveRoom(int entryCount)
Description copied from class:LongHashSetTarget load: 0,6- Overrides:
reserveRoomin classLongHashSet
-
-