protected static class LongHashSet.Synchronized extends LongHashSet
LongHashSet.Synchronized
DEFAULT_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, size
public boolean contains(long key)
contains
in class LongHashSet
public boolean add(long key)
LongHashSet
add
in class LongHashSet
public boolean remove(long key)
LongHashSet
remove
in class LongHashSet
public long[] keys()
LongHashSet
keys
in class LongHashSet
public void clear()
clear
in class LongHashSet
public void setCapacity(int newCapacity)
setCapacity
in class LongHashSet
public void reserveRoom(int entryCount)
LongHashSet
reserveRoom
in class LongHashSet
Available under the Apache License, Version 2.0 - Copyright © 2012-2016 greenrobot.org. All Rights Reserved.