commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1088075 - /commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClassIterator.java
Date Sat, 02 Apr 2011 18:39:36 GMT
Author: simonetripodi
Date: Sat Apr  2 18:39:36 2011
New Revision: 1088075

URL: http://svn.apache.org/viewvc?rev=1088075&view=rev
Log:
added generics: a ResourceClassIterator of a specified type T, iterates over the given T extensions

Modified:
    commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClassIterator.java

Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClassIterator.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClassIterator.java?rev=1088075&r1=1088074&r2=1088075&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClassIterator.java
(original)
+++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ResourceClassIterator.java
Sat Apr  2 18:39:36 2011
@@ -20,11 +20,11 @@ package org.apache.commons.discovery;
 /**
  * @author Richard A. Sitze
  */
-public abstract class ResourceClassIterator extends ResourceIterator
+public abstract class ResourceClassIterator<T> extends ResourceIterator
 {
     /**
      */
-    public abstract ResourceClass nextResourceClass();
+    public abstract <S extends T> ResourceClass<S> nextResourceClass();
 
     public Resource nextResource() {
         return nextResourceClass();



Mime
View raw message