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
  • Constructor Details

    • ServiceMatchesMerger

      public ServiceMatchesMerger()
  • Method Details

    • 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).