org.oddjob.beancmpr.comparers
Class DefaultComparersByType
java.lang.Object
org.oddjob.beancmpr.comparers.DefaultComparersByType
- All Implemented Interfaces:
- ComparersByType, HierarchicalComparer
public class DefaultComparersByType
- extends Object
- implements ComparersByType
Default Comparer
s.
- Author:
- rob
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultComparersByType
public DefaultComparersByType()
comparerFor
public <T> Comparer<T> comparerFor(Class<T> type)
- Description copied from interface:
ComparersByType
- Find a
Comparer
for a given type.
- Specified by:
comparerFor
in interface ComparersByType
- Type Parameters:
T
- The type of the type.- Parameters:
type
- The type.
- Returns:
- The comparer or null if one can't be found for the type.
injectComparers
public void injectComparers(ComparersByType comparers)
- Description copied from interface:
HierarchicalComparer
- Used by owner of comparers to inject the master comparer into
HierarchicalComparer
s.
- Specified by:
injectComparers
in interface HierarchicalComparer
- Parameters:
comparers
- The master comparers.
Copyright © 2013. All Rights Reserved.