com.adventnet.snmp.snmp2.agent
Interface ComparableObject
- All Known Implementing Classes:
- VarBindRequestListenerHolder
- public interface ComparableObject
This interface is implemented by VarBindRequestlistenerHolder and
VarBindRequestListenerManager. And also implemented by all user objects.
|
Method Summary |
int |
compareTo(java.lang.Object obj)
Compares two objects. |
java.lang.Object |
getKey()
The key for this ComparableObject which identifies it |
compareTo
public int compareTo(java.lang.Object obj)
- Compares two objects.
- Parameters:
obj - ComparableObject to be compared- Returns:
- 0 if two of them or equal
-
1 if obj is less
-
-1 if obj is greater
getKey
public java.lang.Object getKey()
- The key for this ComparableObject which identifies it
- Returns:
- object of the key