|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReadableIntMap
Provides read access to a collection using integer values as element keys.
Method Summary | ||
---|---|---|
boolean |
contains(int key)
Determines if this collection contains an element with provided integer key. |
|
Object |
get(int key)
Retrieves element by integer key. |
|
int |
getKey(Object element)
Retrieves integer key by element. |
|
int |
size()
Retrieves the number of elements in this collection. |
Method Detail |
---|
int size()
Object get(int key)
key
- Key for desired element.
int getKey(Object element)
Note: This operation can be linear with respect to the number of entries in the table.
element
- Element for which you want the key.
boolean contains(int key)
key
- Key to locate in this collection.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal