org.eclipse.soda.dk.device.servlet
Class ServiceReferenceComparator
java.lang.Object
org.eclipse.soda.dk.device.servlet.ServiceReferenceComparator
- All Implemented Interfaces:
- java.util.Comparator
public class ServiceReferenceComparator
- extends java.lang.Object
- implements java.util.Comparator
- Version:
- 1.0.0
|
Method Summary |
int |
compare(java.lang.Object object1,
java.lang.Object object2)
Compare with the specified object1 and object2 parameters and return the int result. |
static java.util.Comparator |
getInstance()
Gets the instance (Comparator) value. |
java.lang.String |
getShort(java.lang.Object data)
Get short with the specified data parameter and return the String result. |
| 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 |
INSTANCE
public static final ServiceReferenceComparator INSTANCE
- Define the instance (ServiceReferenceComparator) constant.
ServiceReferenceComparator
public ServiceReferenceComparator()
- Constructs an instance of this class.
getInstance
public static java.util.Comparator getInstance()
- Gets the instance (Comparator) value.
- Returns:
- The instance (
Comparator) value.
compare
public int compare(java.lang.Object object1,
java.lang.Object object2)
- Compare with the specified object1 and object2 parameters and return the int result.
- Specified by:
compare in interface java.util.Comparator
- Parameters:
object1 - The object1 (Object) parameter.object2 - The object2 (Object) parameter.
- Returns:
- Results of the compare (
int) value.
getShort
public java.lang.String getShort(java.lang.Object data)
- Get short with the specified data parameter and return the String result.
- Parameters:
data - The data (Object) parameter.
- Returns:
- Results of the get short (
String) value.
Copyright (c) 1999, 2007 IBM