|
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.java.util.AbstractMap
oracle.adfnmc.java.util.HashMap
oracle.adfnmc.java.util.LinkedHashMap
public class LinkedHashMap
LinkedHashMap is a variant on HashMap. Its entries are kept in a doubly-linked list. The iteration order is, by default, the order in which keys were inserted.
If the three argument constructor is used, and order
is specified as true
, the iteration
would be in the order that entries were accessed. The access order gets affected by put(), get(), putAll()
operations, but not by operations on the collection views.
Null elements are allowed, and all the optional Map operations are supported.
Constructor Summary | |
---|---|
LinkedHashMap()
Constructs a new empty instance of LinkedHashMap. |
|
LinkedHashMap(int s)
Constructor with specified size. |
|
LinkedHashMap(int s,
float lf)
Constructor with specified size and load factor. |
|
LinkedHashMap(int s,
float lf,
boolean order)
Constructor with specified size, load factor and access order |
|
LinkedHashMap(Map m)
Constructor with input map |
Method Summary | |
---|---|
void |
clear()
Removes all mappings from this HashMap, leaving it empty. |
java.lang.Object |
clone()
Answers a new HashMap with the same mappings and size as this HashMap. |
boolean |
containsValue(java.lang.Object value)
Searches this map for the specified value. |
Set |
entrySet()
Answers a Set of the mappings contained in this HashMap. |
java.lang.Object |
get(java.lang.Object key)
Retrieve the map value corresponding to the given key. |
Set |
keySet()
Answers a Set of the keys contained in this HashMap. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Set the mapped value for the given key to the given value. |
java.lang.Object |
remove(java.lang.Object key)
Remove the entry corresponding to the given key. |
protected boolean |
removeEldestEntry(Map.Entry eldest)
This method is queried from the put and putAll methods to check if the eldest member of the map should be deleted before adding the new member. |
Collection |
values()
Answers a Collection of the values contained in this HashMap. |
Methods inherited from class oracle.adfnmc.java.util.HashMap |
---|
containsKey, isEmpty, putAll, putAll, size |
Methods inherited from class oracle.adfnmc.java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.adfnmc.java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public LinkedHashMap()
public LinkedHashMap(int s)
s
- Size of LinkedHashMap requiredpublic LinkedHashMap(int s, float lf)
s
- Size of LinkedHashMap requiredlf
- Load factorpublic LinkedHashMap(int s, float lf, boolean order)
s
- Size of LinkedHashmap requiredlf
- Load factororder
- If true indicates that traversal order should begin with most recently accessedpublic LinkedHashMap(Map m)
m
- Input mapMethod Detail |
---|
public boolean containsValue(java.lang.Object value)
containsValue
in interface Map
containsValue
in class HashMap
value
- the object to search for
value
is a value of this HashMap, false otherwisepublic java.lang.Object get(java.lang.Object key)
get
in interface Map
get
in class HashMap
key
- Key value
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface Map
put
in class HashMap
key
- Key valuevalue
- New mapped value
public Set entrySet()
entrySet
in interface Map
entrySet
in class HashMap
public Set keySet()
keySet
in interface Map
keySet
in class HashMap
public Collection values()
values
in interface Map
values
in class HashMap
public java.lang.Object remove(java.lang.Object key)
remove
in interface Map
remove
in class HashMap
key
- the key
protected boolean removeEldestEntry(Map.Entry eldest)
eldest
-
public void clear()
clear
in interface Map
clear
in class HashMap
HashMap.isEmpty()
,
HashMap.size()
public java.lang.Object clone()
HashMap
clone
in class HashMap
Cloneable
|
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 |