|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelma.framework.repository.ResourceComparator
public class ResourceComparator
Sorts resources according to the order of their repositories
Field Summary | |
---|---|
protected Application |
app
|
Constructor Summary | |
---|---|
ResourceComparator(Application app)
Constructcs a ResourceComparator sorting according to the top-level repositories of the given application |
Method Summary | |
---|---|
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Compares two Repositories, Resources or RepositoryTrackers |
boolean |
equals(java.lang.Object obj)
Checks if the comparator is equal to the given comparator A ResourceComparator is equal to another ResourceComparator if the applications they belong to are equal |
Application |
getApplication()
Return the application we're comparing resources for |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Application app
Constructor Detail |
---|
public ResourceComparator(Application app)
app
- application that provides the top-level repositoriesMethod Detail |
---|
public int compare(java.lang.Object obj1, java.lang.Object obj2)
compare
in interface java.util.Comparator
obj1
- Repository, Resource or RepositoryTrackersobj2
- Repository, Resource or RepositoryTrackers
java.lang.ClassCastException
- if the arguments' types prevent them from
being compared by this Comparator.public boolean equals(java.lang.Object obj)
equals
in interface java.util.Comparator
equals
in class java.lang.Object
obj
- comparator
public Application getApplication()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |