From: NYSE_ARCA [mailto:nyse_a...@oc384.net]
Sent: Friday, June 05, 2009 1:36 PM
To: 'dev@commons.apache.org'
Subject: collections error
It looks like the java doc here:
http://commons.apache.org/collections/apidocs/org/apache/commons/collections
/map/LinkedMap.html#getValue(int)
is wrong. It says both get(.) and getValue(.) return the key at the
specified index. That can't be right, is it?
get
public java.lang.Object get(int index)
Gets the key at the specified index.
Parameters:
index - the index to retrieve
Returns:
the key at the specified index
Throws:
java.lang.IndexOutOfBoundsException - if the index is invalid
_____
getValue
public java.lang.Object getValue(int index)
Gets the value at the specified index.
Parameters:
index - the index to retrieve
Returns:
the key at the specified index
Throws:
java.lang.IndexOutOfBoundsException - if the index is invalid