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/11/01 14:33:26 UTC

svn commit: r1711763 - /uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/LowLevelIndexRepository.java

Author: schor
Date: Sun Nov  1 13:33:25 2015
New Revision: 1711763

URL: http://svn.apache.org/viewvc?rev=1711763&view=rev
Log:
[UIMA-4674] add generic type

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

Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/LowLevelIndexRepository.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/LowLevelIndexRepository.java?rev=1711763&r1=1711762&r2=1711763&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/LowLevelIndexRepository.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/LowLevelIndexRepository.java Sun Nov  1 13:33:25 2015
@@ -19,6 +19,8 @@
 
 package org.apache.uima.cas.impl;
 
+import org.apache.uima.cas.FeatureStructure;
+
 /**
  * Low-level index repository access. Provides access to low-level indexes.
  * 
@@ -36,7 +38,7 @@ public interface LowLevelIndexRepository
    *          The name of the index.
    * @return The corresponding index, or <code>null</code> if no such index exists.
    */
-  LowLevelIndex ll_getIndex(String indexName);
+  <T extends FeatureStructure> LowLevelIndex<T> ll_getIndex(String indexName);
 
   /**
    * Get an index by a name and type. The type must be a subtype of the index's type. Note that
@@ -50,7 +52,7 @@ public interface LowLevelIndexRepository
    * @exception LowLevelException
    *              If the type code argument is not a valid type code.
    */
-  LowLevelIndex ll_getIndex(String indexName, int typeCode);
+  <T extends FeatureStructure> LowLevelIndex<T> ll_getIndex(String indexName, int typeCode);
 
   /**
    * Add a FS reference to all appropriate indexes in the repository.