|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.commons.util.mod.AbstractMapPro<K,V>
railo.commons.util.mod.HashMapPro<K,V>
railo.commons.util.mod.LinkedHashMapPro<K,V>
public class LinkedHashMapPro<K,V>
Nested Class Summary |
---|
Nested classes/interfaces inherited from class railo.commons.util.mod.AbstractMapPro |
---|
AbstractMapPro.SimpleEntry<K,V>, AbstractMapPro.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
LinkedHashMapPro()
Constructs an empty insertion-ordered LinkedHashMap instance with the default initial capacity (16) and load factor (0.75). |
|
LinkedHashMapPro(int initialCapacity)
Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and a default load factor (0.75). |
|
LinkedHashMapPro(int initialCapacity,
float loadFactor)
Constructs an empty insertion-ordered LinkedHashMap instance with the specified initial capacity and load factor. |
|
LinkedHashMapPro(int initialCapacity,
float loadFactor,
boolean accessOrder)
Constructs an empty LinkedHashMap instance with the specified initial capacity, load factor and ordering mode. |
|
LinkedHashMapPro(Map<? extends K,? extends V> m)
Constructs an insertion-ordered LinkedHashMap instance with the same mappings as the specified map. |
Method Summary | |
---|---|
void |
clear()
Removes all of the mappings from this map. |
boolean |
containsValue(Object value)
Returns true if this map maps one or more keys to the specified value. |
V |
g(K key)
|
V |
g(K key,
V defaultValue)
|
V |
get(Object key)
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. |
void |
readExternal(ObjectInput in)
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class railo.commons.util.mod.HashMapPro |
---|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, r, r, remove, size, values |
Methods inherited from class railo.commons.util.mod.AbstractMapPro |
---|
equals, invalidKey, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface railo.commons.util.mod.MapPro |
---|
r, r |
Methods inherited from interface java.util.Map |
---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
---|
public LinkedHashMapPro(int initialCapacity, float loadFactor)
initialCapacity
- the initial capacityloadFactor
- the load factor
IllegalArgumentException
- if the initial capacity is negative
or the load factor is nonpositivepublic LinkedHashMapPro(int initialCapacity)
initialCapacity
- the initial capacity
IllegalArgumentException
- if the initial capacity is negativepublic LinkedHashMapPro()
public LinkedHashMapPro(Map<? extends K,? extends V> m)
m
- the map whose mappings are to be placed in this map
NullPointerException
- if the specified map is nullpublic LinkedHashMapPro(int initialCapacity, float loadFactor, boolean accessOrder)
initialCapacity
- the initial capacityloadFactor
- the load factoraccessOrder
- the ordering mode - true for
access-order, false for insertion-order
IllegalArgumentException
- if the initial capacity is negative
or the load factor is nonpositiveMethod Detail |
---|
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractMapPro<K,V>
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractMapPro<K,V>
IOException
ClassNotFoundException
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
containsValue
in class HashMapPro<K,V>
value
- value whose presence in this map is to be tested
public V get(Object key)
null
if this map contains no mapping for the key.
More formally, if this map contains a mapping from a key
k
to a value v
such that (key==null ? k==null :
key.equals(k))
, then this method returns v
; otherwise
it returns null
. (There can be at most one such mapping.)
A return value of null
does not necessarily
indicate that the map contains no mapping for the key; it's also
possible that the map explicitly maps the key to null
.
The containsKey
operation may be used to
distinguish these two cases.
get
in interface Map<K,V>
get
in class HashMapPro<K,V>
public V g(K key) throws PageException
g
in interface MapPro<K,V>
g
in class HashMapPro<K,V>
PageException
public V g(K key, V defaultValue)
g
in interface MapPro<K,V>
g
in class HashMapPro<K,V>
public void clear()
clear
in interface Map<K,V>
clear
in class HashMapPro<K,V>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |