public class HashSetInfinitePointerDataStructure<T,P> extends HashSetInfiniteDataStructureImpl<T> implements PointerBasedDataStructure<T,P>
DataStructure.Type
FINITE_ITERABLE_DATA_STRUCTURES, FINITE_ITERABLE_POINTER_DATA_STRUCTURES, FINITE_POINTER_DATA_STRUCTURES, INFIITE_DATA_STRUCTURES, ITERABLE_DATA_STRUCTURES, POINTER_DATA_STRUCTURES
Constructor and Description |
---|
HashSetInfinitePointerDataStructure() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<ItemPointerPair<T,P>> |
add(T t,
P p)
add element t to the data structure, update it's pointer to p.
|
P |
getPointedElement(T t) |
add, clear, contains, getCapacity, getFrequencyOf, getSize, getType, isEmpty, iterator
getParameters, getUsedMemoryInBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, clear, contains, getCapacity, getFrequencyOf, getParameters, getSize, getType, getUsedMemoryInBytes, isEmpty
public java.util.Collection<ItemPointerPair<T,P>> add(T t, P p)
PointerBasedDataStructure
add
in interface PointerBasedDataStructure<T,P>
t
- element in data structurep
- pointed elementpublic P getPointedElement(T t)
getPointedElement
in interface PointerBasedDataStructure<T,P>