org.oddjob.beancmpr.beans
Class ComparersByPropertyMap
java.lang.Object
org.oddjob.beancmpr.beans.ComparersByPropertyMap
- All Implemented Interfaces:
- ComparersByProperty
public class ComparersByPropertyMap
- extends Object
- implements ComparersByProperty
Collects Comparer
s by property name.
- Author:
- rob
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
comparersByProperty
public final Map<String,Comparer<?>> comparersByProperty
ComparersByPropertyMap
public ComparersByPropertyMap()
setComparerForProperty
public void setComparerForProperty(String property,
Comparer<?> comparer)
getComparerForProperty
public Comparer<?> getComparerForProperty(String propertyName)
- Description copied from interface:
ComparersByProperty
- Provide a
Comparer
.
- Specified by:
getComparerForProperty
in interface ComparersByProperty
- Parameters:
propertyName
- The property.
- Returns:
- The comparer. May be null.
Copyright © 2013. All Rights Reserved.