|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.w3c.mwi.mobileok.basic.ResourceComparator
final class ResourceComparator
Compares Resources 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.PrimaryResourceContext.StylesheetResourceContext.ImageResourceContext.ObjectResourceContext.LinkedStylesheets 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 | ||||||||