|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.mwi.mobileok.basic.ResourceComparator
final class ResourceComparator
Compares Resource
s based on their context and their URI.
Field Summary | |
---|---|
static java.util.Comparator<Resource> |
INSTANCE
|
Constructor Summary | |
---|---|
private |
ResourceComparator()
|
Method Summary | |
---|---|
int |
compare(Resource o1,
Resource o2)
Compares two resources based on the context of the resources. |
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 |
---|
public static final java.util.Comparator<Resource> INSTANCE
Constructor Detail |
---|
private ResourceComparator()
Method Detail |
---|
public int compare(Resource o1, Resource o2)
The following order is used:
ResourceContext.Primary
ResourceContext.Stylesheet
ResourceContext.Image
ResourceContext.Object
ResourceContext.Linked
Stylesheets are also compared on their type:
compare
in interface java.util.Comparator<Resource>
o1
- First resource to compareo2
- Second resource to compare
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |