incubator-river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter_firmst...@apache.org
Subject svn commit: r939100 - /incubator/river/jtsk/trunk/src/net/jini/lookup/ServiceResultStreamFilter.java
Date Wed, 28 Apr 2010 21:26:30 GMT
Author: peter_firmstone
Date: Wed Apr 28 21:26:29 2010
New Revision: 939100

URL: http://svn.apache.org/viewvc?rev=939100&view=rev
Log:
This is very experimental please comment, suggest improvements etc, where new classes should
go etc.

Note changes to follow for methods signatures as per Chris Dolan's suggestions.

Also please check for backward compatibility issues.

Modified:
    incubator/river/jtsk/trunk/src/net/jini/lookup/ServiceResultStreamFilter.java

Modified: incubator/river/jtsk/trunk/src/net/jini/lookup/ServiceResultStreamFilter.java
URL: http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/src/net/jini/lookup/ServiceResultStreamFilter.java?rev=939100&r1=939099&r2=939100&view=diff
==============================================================================
--- incubator/river/jtsk/trunk/src/net/jini/lookup/ServiceResultStreamFilter.java (original)
+++ incubator/river/jtsk/trunk/src/net/jini/lookup/ServiceResultStreamFilter.java Wed Apr
28 21:26:29 2010
@@ -9,7 +9,7 @@ import net.jini.core.lookup.ResultStream
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
-import net.jini.core.lookup.MarshalledServiceItem;
+import net.jini.core.lookup.ServiceItem;
 
 /**
  * A Filter utility class designed to filter out unwanted results.  Filters can
@@ -24,19 +24,19 @@ import net.jini.core.lookup.MarshalledSe
  * 
  * @author Peter Firmstone.
  */
-public class ServiceResultStreamFilter implements ResultStream<MarshalledServiceItem>
{
+public class ServiceResultStreamFilter implements ResultStream<ServiceItem> {
     private final List<ServiceItemFilter> filters;
-    private final ResultStream<MarshalledServiceItem> inputResultStream;
+    private final ResultStream<ServiceItem> inputResultStream;
     
-    public ServiceResultStreamFilter(ResultStream<MarshalledServiceItem> rs,
+    public ServiceResultStreamFilter(ResultStream<ServiceItem> rs,
             ServiceItemFilter[] sf){
         inputResultStream = rs;
         filters = new ArrayList<ServiceItemFilter>(sf.length);
         filters.addAll(Arrays.asList(sf));
     }
 
-    public MarshalledServiceItem get() {
-        for(MarshalledServiceItem item = inputResultStream.get(); item != null; 
+    public ServiceItem get() {
+        for(ServiceItem item = inputResultStream.get(); item != null; 
                 item = inputResultStream.get()) {
             int l = filters.size();
             for ( int i = 0; i < l; i++){



Mime
View raw message