org.specrunner.comparators.core
Class ComparatorManagerImpl

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,T>
          extended by org.specrunner.util.mapping.core.MappingManagerImpl<IComparator>
              extended by org.specrunner.comparators.core.ComparatorManagerImpl
All Implemented Interfaces:
Serializable, Cloneable, Map<String,IComparator>, IComparatorManager, IMappingManager<IComparator>

public class ComparatorManagerImpl
extends MappingManagerImpl<IComparator>
implements IComparatorManager

Default comparator manager implementation.

Author:
Thiago Santos
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.specrunner.util.mapping.core.MappingManagerImpl
initialized
 
Fields inherited from interface org.specrunner.util.mapping.IMappingManager
DEFAULT_NAME
 
Constructor Summary
ComparatorManagerImpl()
          Default constructor.
 
Method Summary
 IComparator get(Class<?> type)
          Gets a comparator by type.
 
Methods inherited from class org.specrunner.util.mapping.core.MappingManagerImpl
bind, get, getDefault, initialize, keySet, normalizeKey, setDefault
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, isEmpty, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.specrunner.util.mapping.IMappingManager
bind, getDefault, setDefault
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

ComparatorManagerImpl

public ComparatorManagerImpl()
Default constructor.

Method Detail

get

public IComparator get(Class<?> type)
Description copied from interface: IComparatorManager
Gets a comparator by type.

Specified by:
get in interface IComparatorManager
Parameters:
type - The type of object to be compared.
Returns:
The comparator, if it exists, null, otherwise.


Copyright © 2014. All rights reserved.