|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.progeeks.meta.util.FormatComparator
public class FormatComparator
Uses an objects String as given by the contained formatter to use when comparing two values.
| Constructor Summary | |
|---|---|
FormatComparator()
Creates a format comparator that will delegate to a DefaultPropertyFormat to convert compared objects to strings that it will use for the real comparison. |
|
FormatComparator(PropertyFormat format)
Creates a format comparator that will delegate to the specified PropertyFormat to convert compared objects to strings that it will use for the real comparison. |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
|
PropertyFormat |
getPropertyFormat()
Returns the property format object that will used to convert the objects into strings before comparisons are done. |
void |
setPropertyFormat(PropertyFormat format)
Sets the property format object that will used to convert the objects into strings before comparisons are done. |
| 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 |
| Constructor Detail |
|---|
public FormatComparator()
public FormatComparator(PropertyFormat format)
| Method Detail |
|---|
public void setPropertyFormat(PropertyFormat format)
public PropertyFormat getPropertyFormat()
public int compare(java.lang.Object obj1,
java.lang.Object obj2)
compare in interface java.util.Comparator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||