1.0.0

org.eclipse.soda.dk.device.servlet
Class ServiceReferenceComparator

java.lang.Object
  extended by 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

Field Summary
static ServiceReferenceComparator INSTANCE
          Define the instance (ServiceReferenceComparator) constant.
 
Constructor Summary
ServiceReferenceComparator()
          Constructs an instance of this class.
 
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
 

Field Detail

INSTANCE

public static final ServiceReferenceComparator INSTANCE
Define the instance (ServiceReferenceComparator) constant.

Constructor Detail

ServiceReferenceComparator

public ServiceReferenceComparator()
Constructs an instance of this class.

Method Detail

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.

1.0.0

Copyright (c) 1999, 2007 IBM