|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.file.collectors.CmsPropertyResourceComparator
public class CmsPropertyResourceComparator
Comparator for sorting resource objects based on a selected property value.
Serves as Comparator for resources and as comparator key for the resource
at the same time. Uses lazy initializing of comparator keys in a resource.
| Constructor Summary | |
|---|---|
CmsPropertyResourceComparator(CmsObject cms,
java.lang.String property,
boolean asc)
Creates a new instance of this comparator key. |
|
| Method Summary | |
|---|---|
int |
compare(CmsResource res0,
CmsResource res1)
|
java.lang.String |
getPropertyValue()
Returns the property value of this resource comparator key. |
| 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 CmsPropertyResourceComparator(CmsObject cms,
java.lang.String property,
boolean asc)
cms - the current OpenCms user contextproperty - the name of the sort property (case sensitive)asc - the sort order (true=asc, false=desc)| Method Detail |
|---|
public int compare(CmsResource res0,
CmsResource res1)
compare in interface java.util.Comparator<CmsResource>Comparator.compare(java.lang.Object, java.lang.Object)public java.lang.String getPropertyValue()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||