common
Class ComparableServiceItem

java.lang.Object
  extended bynet.jini.core.lookup.ServiceItem
      extended bycommon.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

Field Summary
 
Fields inherited from class net.jini.core.lookup.ServiceItem
attributeSets, service, serviceID
 
Constructor Summary
ComparableServiceItem(net.jini.core.lookup.ServiceItem item)
           
 
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
 

Constructor Detail

ComparableServiceItem

public ComparableServiceItem(net.jini.core.lookup.ServiceItem item)
Method Detail

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()