de.cesr.lara.components.util.impl
Class LPreferenceWeightMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<Class<? extends LaraPreference>,Double>
              extended by de.cesr.lara.components.util.impl.LPreferenceWeightMap
All Implemented Interfaces:
Serializable, Cloneable, Map<Class<? extends LaraPreference>,Double>

public class LPreferenceWeightMap
extends LinkedHashMap<Class<? extends LaraPreference>,Double>

Overrides AbstractMap.toString() in order to return an alphabetically ordered list of preferenceWeights and preference values. Supports fast instantiation.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
LPreferenceWeightMap()
           
LPreferenceWeightMap(LPrefEntry... entry)
           
LPreferenceWeightMap(Map<Class<? extends LaraPreference>,Double> map)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

LPreferenceWeightMap

public LPreferenceWeightMap()

LPreferenceWeightMap

public LPreferenceWeightMap(LPrefEntry... entry)
Parameters:
map -

LPreferenceWeightMap

public LPreferenceWeightMap(Map<Class<? extends LaraPreference>,Double> map)
Parameters:
map -
Method Detail

toString

public String toString()
Overrides:
toString in class AbstractMap<Class<? extends LaraPreference>,Double>