|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.binaryfantasy.murq.content.ContentComparator
public class ContentComparator
Provides a properties based comparator for IContent objects.
| Constructor Summary | |
|---|---|
ContentComparator(String property)
Construct a comparator that compares based on the single |
|
ContentComparator(String[] properties)
Construct a comparator that compares based on the properties,
with the 0 index having the highest priority and so on. |
|
ContentComparator(String[] properties,
boolean desc)
Construct a comparator that compares based on the properties,
with the 0 index having the highest priority and so on. |
|
ContentComparator(String property,
boolean desc)
Construct a comparator that compares based on the single |
|
| Method Summary | |
|---|---|
int |
compare(IContent content1,
IContent content2)
|
| 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 ContentComparator(String property)
property - name of the property to use for comparison.public ContentComparator(String[] properties)
properties,
with the 0 index having the highest priority and so on.
properties - names of the properties to use for comparison.
public ContentComparator(String property,
boolean desc)
property - name of the property to use for comparison.desc - true causes comparisons to be performed in
reverse.
public ContentComparator(String[] properties,
boolean desc)
properties,
with the 0 index having the highest priority and so on.
properties - names of the properties to use for comparison.desc - true causes comparisons to be performed in
reverse.| Method Detail |
|---|
public int compare(IContent content1,
IContent content2)
compare in interface Comparator<IContent>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||