public class PointerBasedFrequentAlgorithmImpl<T,P> extends FrequentAlgorithmImpl<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 |
---|
PointerBasedFrequentAlgorithmImpl(java.util.Map<FrequentAlgorithmParameterDefinition,DSParameter<?>> params) |
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) |
DataStructure.Type |
getType() |
java.lang.String |
toString() |
add, clean, clear, contains, getCapacity, getFrequencyOf, getMap, getSize, isEmpty, iterator
getParameters, getUsedMemoryInBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, clear, contains, getCapacity, getFrequencyOf, getParameters, getSize, getUsedMemoryInBytes, isEmpty
public PointerBasedFrequentAlgorithmImpl(java.util.Map<FrequentAlgorithmParameterDefinition,DSParameter<?>> params)
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>
public java.lang.String toString()
toString
in class FrequentAlgorithmImpl<T>
public DataStructure.Type getType()
getType
in interface DataStructure<T>
getType
in class FrequentAlgorithmImpl<T>