You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by oh...@apache.org on 2008/02/03 20:07:02 UTC
svn commit: r618060 -
/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/Configuration.java
Author: oheger
Date: Sun Feb 3 11:06:59 2008
New Revision: 618060
URL: http://svn.apache.org/viewvc?rev=618060&view=rev
Log:
Type-safety improvements for Configuration interface
Modified:
commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/Configuration.java
Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/Configuration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/Configuration.java?rev=618060&r1=618059&r2=618060&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/Configuration.java (original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/Configuration.java Sun Feb 3 11:06:59 2008
@@ -174,7 +174,7 @@
* @return An Iterator of keys that match the prefix.
* @see #getKeys()
*/
- Iterator getKeys(String prefix);
+ Iterator<String> getKeys(String prefix);
/**
* Get the list of the keys contained in the configuration. The returned
@@ -189,7 +189,7 @@
*
* @return An Iterator.
*/
- Iterator getKeys();
+ Iterator<String> getKeys();
/**
* Get a list of properties associated with the given configuration key.
@@ -572,7 +572,7 @@
* @throws ConversionException is thrown if the key maps to an
* object that is not a List.
*/
- List getList(String key);
+ List<?> getList(String key);
/**
* Get a List of strings associated with the given configuration key.
@@ -586,5 +586,5 @@
* @throws ConversionException is thrown if the key maps to an
* object that is not a List.
*/
- List getList(String key, List defaultValue);
+ <T> List<T> getList(String key, List<T> defaultValue);
}