|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.MOScopeComparator
public class MOScopeComparator
The MOScopeComparator compares two scopes with each other or
it compares a scope and a MOQuery with each other.
Two scopes are compared by their context (if both are MOContextScope
instances) first and then by their lower bound.
A scope is compared with a query by comparing the scope with the queries
scope and then if both are deemed to be equal, the upper bound of the scope
is checked. If it is unbounded (upper bound is null
| Constructor Summary | |
|---|---|
MOScopeComparator()
|
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares a scope with another scope or query. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MOScopeComparator()
| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatoro1 - a MOscope or MOQuery instance.o2 - a MOscope or MOQuery instance.
o1 is less than o2
and zero if both values are deemed to be equal and a value greater than
zero if o1 is greater than o2.public boolean equals(java.lang.Object obj)
equals in interface java.util.Comparatorequals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
Copyright 2005-2009 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||