common
Class ComparableServiceItem
java.lang.Object
net.jini.core.lookup.ServiceItem
common.ComparableServiceItem
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public class ComparableServiceItem
- extends net.jini.core.lookup.ServiceItem
- implements java.lang.Comparable
Extends ServiceItem for A/V clients that will have
several services and want to sort them into order
(e.g. a SortedList view of the services). It looks for
entries such as CDTrack to compare to other sources
- See Also:
- Serialized Form
Fields inherited from class net.jini.core.lookup.ServiceItem |
attributeSets, service, serviceID |
Method Summary |
int |
compareTo(java.lang.Object obj)
|
boolean |
equals(java.lang.Object item)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ComparableServiceItem
public ComparableServiceItem(net.jini.core.lookup.ServiceItem item)
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interface java.lang.Comparable
equals
public boolean equals(java.lang.Object item)
toString
public java.lang.String toString()