GigaSpaces XAP 9.0 API

net.jini.core.lookup
Class ServiceMatchesMerger

java.lang.Object
  extended by net.jini.core.lookup.ServiceMatchesMerger

public class ServiceMatchesMerger
extends Object

Merges together a set of ServiceItems extracted from a ServiceMatches result. Provides a getServiceMatches() which returns an instance of a ServiceMatches which holds all the merged ServiceItems from different ServiceMatches. The merged result will not contain ServiceItem duplicates which match by their ServiceID.

Author:
Moran Avigdor

Constructor Summary
ServiceMatchesMerger()
           
 
Method Summary
 void addServiceItems(ServiceMatches matches)
          Adds ServiceItems extracted from the ServiceMatches.
 ServiceMatches getServiceMatches()
          Returns an instance of ServiceMatches which contains all the added ServiceItems.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceMatchesMerger

public ServiceMatchesMerger()
Method Detail

addServiceItems

public void addServiceItems(ServiceMatches matches)
Adds ServiceItems extracted from the ServiceMatches.


getServiceMatches

public ServiceMatches getServiceMatches()
Returns an instance of ServiceMatches which contains all the added ServiceItems. The ServiceMatches returned will not contain duplicates (ServiceItems with the same ServiceID).


GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.