You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2015/10/29 18:21:06 UTC

svn commit: r1711307 - /uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java

Author: schor
Date: Thu Oct 29 17:21:06 2015
New Revision: 1711307

URL: http://svn.apache.org/viewvc?rev=1711307&view=rev
Log:
[UIMA-4669] allow generic specialization of returned values

Modified:
    uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java

Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java?rev=1711307&r1=1711306&r2=1711307&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/FSIndexRepository.java Thu Oct 29 17:21:06 2015
@@ -74,14 +74,14 @@ public interface FSIndexRepository {
    * 
    * @return All indexes.
    */
-  Iterator<FSIndex<FeatureStructure>> getIndexes();
+  <T extends FeatureStructure> Iterator<FSIndex<T>> getIndexes();
 
   /**
    * Get all indexes in this repository as low level indexes
    * 
    * @return All indexes.
    */
-  Iterator<LowLevelIndex> ll_getIndexes();
+  <T extends FeatureStructure> Iterator<LowLevelIndex<T>> ll_getIndexes();
   
   /**
    * Add a feature structure to all appropriate indexes in the repository. If no indexes exist for
@@ -98,7 +98,7 @@ public interface FSIndexRepository {
    * @exception NullPointerException
    *              If the <code>fs</code> parameter is <code>null</code>.
    */
-  void addFS(FeatureStructure fs);
+  <T extends FeatureStructure> void addFS(T fs);
 
   /**
    * Remove a feature structure from all indexes in the repository.
@@ -108,7 +108,7 @@ public interface FSIndexRepository {
    * @exception NullPointerException
    *              If the <code>fs</code> parameter is <code>null</code>.
    */
-  void removeFS(FeatureStructure fs);
+  <T extends FeatureStructure> void removeFS(T fs);
 
   /**
    * Remove all instances of type, including all subtypes from all indexes in the repository view.