T - public abstract class Functions<T>
extends java.util.HashMap<T,java.lang.Integer>
implements java.util.Map<T,java.lang.Integer>
| Modifier and Type | Field and Description | 
|---|---|
private static long | 
serialVersionUID  | 
| Constructor and Description | 
|---|
Functions()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
containsKey(java.lang.Object key)
checks whether the key is present in the entry-set of the map 
 | 
boolean | 
containsValue(java.lang.Object value)
checks whether the value is present in the entry-set of the map 
 | 
abstract PreferenceOrder<T> | 
generatePreferenceOrder()
this method returns a preference order made out of an ranking function 
 | 
java.lang.Integer | 
get(java.lang.Object key)
returns the value to a given key 
 | 
java.util.Set<java.util.Map.Entry<T,java.lang.Integer>> | 
getElementsByValue(int val)
returns an entry set of all elements in this ranking function with the same rank (= value) 
 | 
java.util.Map<T,java.lang.Integer> | 
getLevelingFunction()
returns the ranking function 
 | 
java.util.Set<java.util.Map.Entry<T,java.lang.Integer>> | 
getPredecessors(java.util.Map.Entry<T,java.lang.Integer> element)
returns a set of predecessor elements for the given entry 
 | 
java.util.Set<java.util.Map.Entry<T,java.lang.Integer>> | 
getSuccessors(java.util.Map.Entry<T,java.lang.Integer> element)
returns a set of successor elements for the given entry 
 | 
abstract void | 
strengthenElement(T element)
strengthens the given element in the function 
 | 
java.lang.String | 
toString()
returns a string representation for this ranking function 
 | 
java.util.Collection<java.lang.Integer> | 
values()
returns a collection containing all values of the map 
 | 
abstract void | 
weakenElement(T element)
weakens the given element in the function 
 | 
clear, clone, compute, computeIfAbsent, computeIfPresent, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizeprivate static final long serialVersionUID
public java.lang.String toString()
toString in class java.util.AbstractMap<T,java.lang.Integer>public java.util.Map<T,java.lang.Integer> getLevelingFunction()
public abstract PreferenceOrder<T> generatePreferenceOrder()
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public java.lang.Integer get(java.lang.Object key)
public java.util.Collection<java.lang.Integer> values()
public java.util.Set<java.util.Map.Entry<T,java.lang.Integer>> getElementsByValue(int val)
val - the rank of the elements searchedpublic java.util.Set<java.util.Map.Entry<T,java.lang.Integer>> getPredecessors(java.util.Map.Entry<T,java.lang.Integer> element)
element - the given entrypublic java.util.Set<java.util.Map.Entry<T,java.lang.Integer>> getSuccessors(java.util.Map.Entry<T,java.lang.Integer> element)
element - the given entrypublic abstract void weakenElement(T element)
element - the element being weakenedpublic abstract void strengthenElement(T element)
element - the element being strengthened