|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.util.collections.OrderedDictionary
public class OrderedDictionary
A Hashtable-like collection which maps keys to values and also maintains the order in which the elements were added.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.adfnmc.java.util.Map |
---|
Map.Entry |
Field Summary | |
---|---|
static java.lang.Class |
CLASS_INSTANCE
|
Constructor Summary | |
---|---|
OrderedDictionary()
Create an OrderedDictionary with default capacity |
|
OrderedDictionary(int initialSize)
Create an OrderedDictionary with the specified initial size |
Method Summary | |
---|---|
void |
clear()
Remove all elements in this collection |
java.lang.Object |
clone()
|
boolean |
contains(java.lang.Object value)
Does the collection contain the specified value? |
boolean |
containsKey(java.lang.Object key)
Does the collection contain the specified key? |
boolean |
containsValue(java.lang.Object value)
Searches this Map for the specified value. |
java.lang.Object |
elementAt(int index)
Retrieve a value by its index. |
java.util.Enumeration |
elements()
Retrieve an iterator over the values in this collection |
Set |
entrySet()
Returns a Set whose elements comprise all of the mappings that are to be found in this
Map . |
java.lang.Object |
get(int index)
An alias for elementAt. |
java.lang.Object |
get(java.lang.Object key)
Retrieve a value by its key |
java.util.Enumeration |
getElements()
|
int |
getIndexOfKey(java.lang.Object key)
Returns the index associated with the given key |
java.lang.Object |
getKeyOfIndex(int index)
Returns the key associated with the given index |
java.util.Enumeration |
getKeys()
|
void |
insertElementAt(java.lang.Object value,
int index,
java.lang.Object key)
Inserts a new element with a new key at the specified index. |
boolean |
isEmpty()
Is the collection empty? |
java.util.Enumeration |
keys()
Retrieve an iterator over the keys in this collection |
Set |
keySet()
Answers a Set of the keys contained in this Map. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Add a key-value pair |
void |
putAll(Map map)
Copies every mapping in the specified Map to this Map. |
java.lang.Object |
remove(java.lang.Object key)
Delete the tuple identified by this key |
void |
removeAllElements()
An alias for clear. |
void |
removeElement(int index)
Delete the tuple identified by this index |
java.lang.Object |
removeElement(java.lang.Object key)
Delete the tuple identified by this key |
void |
replaceElementAt(java.lang.Object value,
int index)
Replaces the element at the specified index. |
void |
replaceElementAt(java.lang.Object key,
java.lang.Object value,
int index)
Replaces both the key and the value at the specified index. |
void |
resize(int newSize)
Resize the dictionary to the new size. |
void |
setElementAt(java.lang.Object value,
int index)
An alias for replaceElementAt. |
void |
setElementAt(java.lang.Object key,
java.lang.Object value,
int index)
An alias for replaceElementAt. |
int |
size()
How many elements are in the collection? |
Collection |
values()
Returns all of the current Map values in a Collection . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.adfnmc.java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
public static final java.lang.Class CLASS_INSTANCE
Constructor Detail |
---|
public OrderedDictionary(int initialSize)
initialSize
- Initial capacitypublic OrderedDictionary()
Method Detail |
---|
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface Map
key
- value
-
public void replaceElementAt(java.lang.Object value, int index)
value
- index
- public void setElementAt(java.lang.Object value, int index)
value
- index
- public void replaceElementAt(java.lang.Object key, java.lang.Object value, int index)
key
- value
- index
- public void resize(int newSize)
newSize
- public void setElementAt(java.lang.Object key, java.lang.Object value, int index)
key
- value
- index
- public void insertElementAt(java.lang.Object value, int index, java.lang.Object key)
value
- index
- key
- public java.lang.Object get(java.lang.Object key)
get
in interface Map
key
-
public java.lang.Object elementAt(int index)
index
- Ranges from 0...n, such that the 0th element was the first one added, and the nth was
the last.
public java.lang.Object get(int index)
index
-
public java.util.Enumeration elements()
public java.util.Enumeration keys()
public boolean containsKey(java.lang.Object key)
containsKey
in interface Map
key
- Key of interest
public boolean contains(java.lang.Object value)
value
- Value of interest
public void clear()
clear
in interface Map
Map.isEmpty()
,
Map.size()
public void removeAllElements()
public int size()
size
in interface Map
public int getIndexOfKey(java.lang.Object key)
key
- Key of interest
public java.lang.Object getKeyOfIndex(int index)
index
- Index of interest
public java.lang.Object removeElement(java.lang.Object key)
key
- Key of interestpublic void removeElement(int index)
index
- [0...n)public java.lang.Object remove(java.lang.Object key)
remove
in interface Map
key
- Key of interest
public boolean isEmpty()
isEmpty
in interface Map
Map.size()
public java.util.Enumeration getElements()
public java.util.Enumeration getKeys()
public java.lang.Object clone()
public boolean containsValue(java.lang.Object value)
Map
containsValue
in interface Map
value
- the object to search for
value
is a value of this Map, false otherwisepublic Set entrySet()
Map
Set
whose elements comprise all of the mappings that are to be found in this
Map
. Information on each of the mappings is encapsulated in a separate Map.Entry
instance. As
the Set
is backed by this Map
, users should be aware that changes in one will be
immediately visible in the other.
entrySet
in interface Map
Set
of the mappingspublic Set keySet()
Map
keySet
in interface Map
public void putAll(Map map)
Map
putAll
in interface Map
map
- the Map to copy mappings frompublic Collection values()
Map
Map
values in a Collection
. As the returned
Collection
is backed by this Map
, users should be aware that changes in one will be
immediately visible in the other.
values
in interface Map
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |