GigaSpaces XAP 9.1 API

net.jini.core.lookup
Class ServiceMatches

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

Field Summary
 ServiceItem[] items
          Matching items (up to maxMatches from lookup method).
 int totalMatches
          Total number of matching items.
 
Constructor Summary
ServiceMatches(ServiceItem[] items, int totalMatches)
          Simple constructor.
 
Method Summary
 String toString()
          Returns a String representation of this ServiceMatches.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

items

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


totalMatches

public int totalMatches
Total number of matching items.

Constructor Detail

ServiceMatches

public ServiceMatches(ServiceItem[] items,
                      int totalMatches)
Simple constructor.

Parameters:
items - matching items
totalMatches - total number of matching items
Method Detail

toString

public String toString()
Returns a String representation of this ServiceMatches.

Overrides:
toString in class Object
Returns:
String representation of this ServiceMatches

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.