public class OccurenceCountingMap<E>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
OccurenceCountingMap.CountingResult<F> |
Constructor and Description |
---|
OccurenceCountingMap() |
Modifier and Type | Method and Description |
---|---|
void |
addAll(OccurenceCountingMap<E> otherMap) |
OccurenceCountingMap<E> |
copy() |
void |
count(E key) |
void |
count(E key,
int toCount) |
void |
countAll(OccurenceCountingMap<E> all) |
java.util.Map<E,java.lang.Integer> |
getMapView() |
java.lang.Integer |
getResult(E key) |
java.util.Collection<OccurenceCountingMap.CountingResult<E>> |
getResults() |
void |
init(E element) |
boolean |
isEmpty() |
static <E> OccurenceCountingMap<E> |
makeDiff(OccurenceCountingMap<E> first,
OccurenceCountingMap<E> second)
Creates the positive diff of two versions of the same occurence counting.
|
static <E> java.util.List<OccurenceCountingMap.CountingResult<E>> |
sortByOccurencesThenByToString(java.util.Collection<OccurenceCountingMap.CountingResult<E>> results) |
java.lang.String |
toString() |
public void addAll(OccurenceCountingMap<E> otherMap)
public OccurenceCountingMap<E> copy()
public void count(E key)
public void count(E key, int toCount)
public void countAll(OccurenceCountingMap<E> all)
public java.util.Map<E,java.lang.Integer> getMapView()
public java.lang.Integer getResult(E key)
public java.util.Collection<OccurenceCountingMap.CountingResult<E>> getResults()
public void init(E element)
public boolean isEmpty()
public static <E> OccurenceCountingMap<E> makeDiff(OccurenceCountingMap<E> first, OccurenceCountingMap<E> second)
public static <E> java.util.List<OccurenceCountingMap.CountingResult<E>> sortByOccurencesThenByToString(java.util.Collection<OccurenceCountingMap.CountingResult<E>> results)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009-2019 Aarhus University