Class ServiceMatches

java.lang.Object
net.jini.core.lookup.ServiceMatches
All Implemented Interfaces:
Serializable

public class ServiceMatches extends Object implements Serializable
An instance of this class is used for the return value when looking up multiple items in the lookup service.
Since:
1.0
Author:
Sun Microsystems, Inc.
See Also:
  • Field Details

    • items

      public ServiceItem[] items
      Matching items (up to maxMatches from lookup method).
    • totalMatches

      public int totalMatches
      Total number of matching items.
  • Constructor Details

    • ServiceMatches

      public ServiceMatches(ServiceItem[] items, int totalMatches)
      Simple constructor.
      Parameters:
      items - matching items
      totalMatches - total number of matching items
  • Method Details

    • toString

      public String toString()
      Returns a String representation of this ServiceMatches.
      Overrides:
      toString in class Object
      Returns:
      String representation of this ServiceMatches