Package net.jini.core.lookup
Class ServiceMatchesMerger
java.lang.Object
net.jini.core.lookup.ServiceMatchesMerger
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddServiceItems(ServiceMatches matches) Adds ServiceItems extracted from the ServiceMatches.Returns an instance ofServiceMatcheswhich contains all the addedServiceItems.
-
Constructor Details
-
ServiceMatchesMerger
public ServiceMatchesMerger()
-
-
Method Details
-
addServiceItems
Adds ServiceItems extracted from the ServiceMatches. -
getServiceMatches
Returns an instance ofServiceMatcheswhich contains all the addedServiceItems. TheServiceMatchesreturned will not contain duplicates (ServiceItems with the same ServiceID).
-