net.jini.core.lookup
Class ServiceMatchesMerger
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceMatchesMerger
public ServiceMatchesMerger()
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 ServiceItem
s.
The ServiceMatches
returned will not contain duplicates (ServiceItems with the same ServiceID).
Copyright © GigaSpaces.