|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deduced.PropertyValueCollectionComparator
public class PropertyValueCollectionComparator
PropertyValueCollectionComparator is used to compare two property collections based on a value they contain.
Field Summary | |
---|---|
private java.lang.Object |
propertyKey
the key of the property to compare |
Constructor Summary | |
---|---|
PropertyValueCollectionComparator()
PropertyValueCollectionComparator Constructor |
Method Summary | |
---|---|
int |
compare(PropertyCollection<?,?> o1,
PropertyCollection<?,?> o2)
(non-Javadoc) |
private int |
compareComparableObjects(java.lang.Object propertyValue1,
java.lang.Object propertyValue2)
compare Comparable Objects |
java.lang.Object |
getPropertyKey()
get the key of the property to compare |
void |
setPropertyKey(java.lang.Object setPropertyKey)
set the key of the property to compare |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Field Detail |
---|
private java.lang.Object propertyKey
Constructor Detail |
---|
public PropertyValueCollectionComparator()
Method Detail |
---|
public void setPropertyKey(java.lang.Object setPropertyKey)
setPropertyKey
- the key of the property to comparepublic java.lang.Object getPropertyKey()
public int compare(PropertyCollection<?,?> o1, PropertyCollection<?,?> o2)
compare
in interface java.util.Comparator<PropertyCollection<?,?>>
Comparator.compare(java.lang.Object, java.lang.Object)
private int compareComparableObjects(java.lang.Object propertyValue1, java.lang.Object propertyValue2)
propertyValue1
- first comparable valuepropertyValue2
- second comparable value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |