public final class FastIDSet extends Object implements Serializable, Cloneable, Iterable<Long>
FastByIDMap
,
Serialized FormConstructor and Description |
---|
FastIDSet()
Creates a new
FastIDSet with default capacity. |
FastIDSet(int size) |
FastIDSet(int size,
float loadFactor) |
FastIDSet(long[] initialKeys) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(long key) |
boolean |
addAll(FastIDSet c) |
boolean |
addAll(long[] c) |
void |
clear() |
FastIDSet |
clone() |
boolean |
contains(long key) |
boolean |
equals(Object other) |
int |
hashCode() |
int |
intersectionSize(FastIDSet other)
Convenience method to quickly compute just the size of the intersection with another
FastIDSet . |
boolean |
isEmpty() |
LongPrimitiveIterator |
iterator() |
void |
rehash() |
boolean |
remove(long key) |
boolean |
removeAll(FastIDSet c) |
boolean |
removeAll(long[] c) |
boolean |
retainAll(FastIDSet c) |
int |
size() |
long[] |
toArray() |
String |
toString() |
public FastIDSet()
FastIDSet
with default capacity.public FastIDSet(long[] initialKeys)
public FastIDSet(int size)
public FastIDSet(int size, float loadFactor)
public int size()
public boolean isEmpty()
public boolean contains(long key)
public boolean add(long key)
public LongPrimitiveIterator iterator()
public long[] toArray()
public boolean remove(long key)
public boolean addAll(long[] c)
public boolean addAll(FastIDSet c)
public boolean removeAll(long[] c)
public boolean removeAll(FastIDSet c)
public boolean retainAll(FastIDSet c)
public void clear()
public void rehash()
public int intersectionSize(FastIDSet other)
FastIDSet
.other
- FastIDSet
to intersect withCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.