commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew M" <and...@oc384.net>
Subject FW: collections error
Date Fri, 05 Jun 2009 18:51:41 GMT
 

 

From: NYSE_ARCA [mailto:nyse_arca@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

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message