Package com.pnfsoftware.jeb.util.collect
Class AddressHashSet
java.lang.Object
com.pnfsoftware.jeb.util.collect.ConcurrentHashSet<Long>
com.pnfsoftware.jeb.util.collect.AddressHashSet
A concurrent set whose values are addresses represented as unsigned
long values.-
Constructor Summary
ConstructorsConstructorDescriptionAddressHashSet(int bitsize) Create a set designed to hold memory keys as addresses. -
Method Summary
Methods inherited from class com.pnfsoftware.jeb.util.collect.ConcurrentHashSet
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
spliterator
-
Constructor Details
-
AddressHashSet
public AddressHashSet(int bitsize) Create a set designed to hold memory keys as addresses.- Parameters:
bitsize- in [1, 64]
-
-
Method Details
-
add
Add an address.- Specified by:
addin interfaceCollection<Long>- Specified by:
addin interfaceSet<Long>- Overrides:
addin classConcurrentHashSet<Long>- Parameters:
k- address- Returns:
- true if the address was added
-