|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.util.StructSupport
railo.runtime.type.StructImpl
public class StructImpl
cold fusion data type struct
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface railo.runtime.type.Collection |
---|
Collection.Key |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary | |
---|---|
static int |
TYPE_SOFT
|
Fields inherited from interface railo.runtime.type.Struct |
---|
TYPE_LINKED, TYPE_REGULAR, TYPE_SYNC, TYPE_WEAKED |
Constructor Summary | |
---|---|
StructImpl()
default constructor |
|
StructImpl(int type)
This implementation spares its clients from the unspecified, generally chaotic ordering provided by normally Struct , without incurring the increased cost associated with TreeMap. |
Method Summary | |
---|---|
void |
clear()
clears the collection |
boolean |
containsKey(Collection.Key key)
contains this key |
boolean |
containsValue(Object value)
|
static void |
copy(Struct src,
Struct trg,
boolean deepCopy)
|
Collection |
duplicate(boolean deepCopy)
|
Object |
get(Collection.Key key)
return a value from the collection |
Object |
get(Collection.Key key,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null |
Iterator |
keyIterator()
|
Collection.Key[] |
keys()
|
String[] |
keysAsString()
|
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception |
Object |
remove(String key)
|
Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null |
Object |
set(Collection.Key key,
Object value)
sets a value to the collection |
Object |
setEL(Collection.Key key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null |
int |
size()
|
Iterator |
valueIterator()
|
Collection |
values()
|
Methods inherited from class railo.runtime.type.util.StructSupport |
---|
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clone, compareTo, compareTo, compareTo, compareTo, containsKey, containsKey, entrySet, equals, get, get, get, invalidKey, isEmpty, iterator, keySet, put, putAll, remove, set, setEL, sizeOf, toDumpData, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
hashCode |
Field Detail |
---|
public static final int TYPE_SOFT
Constructor Detail |
---|
public StructImpl()
public StructImpl(int type)
doubleLinked
- Method Detail |
---|
public Object get(Collection.Key key, Object defaultValue)
Collection
key
- key of the value to get
Collection.get(railo.runtime.type.Collection.Key, java.lang.Object)
public Object get(Collection.Key key) throws PageException
Collection
key
- key of the value to get must be lower case
PageException
Collection.get(railo.runtime.type.Collection.Key)
public Object set(Collection.Key key, Object value) throws PageException
Collection
key
- key of the new valuevalue
- value to set
PageException
Collection.set(railo.runtime.type.Collection.Key, java.lang.Object)
public Object setEL(Collection.Key key, Object value)
Collection
key
- key of the value to getvalue
- value to set
Collection.setEL(railo.runtime.type.Collection.Key, java.lang.Object)
public int size()
Collection.size()
public Collection.Key[] keys()
public String[] keysAsString()
Collection.keysAsString()
public Object remove(String key) throws PageException
PageException
railo.runtime.type.Collection#remove(java.lang.String)
public Object remove(Collection.Key key) throws PageException
Collection
key
- key of the collection
PageException
Collection.remove(railo.runtime.type.Collection.Key)
public Object removeEL(Collection.Key key)
Collection
key
- key of the collection
Collection.removeEL(railo.runtime.type.Collection.Key)
public void clear()
Collection
Collection.clear()
public Collection duplicate(boolean deepCopy)
Collection.duplicate(boolean)
public static void copy(Struct src, Struct trg, boolean deepCopy)
public Iterator keyIterator()
Iteratorable.keyIterator()
public Iterator valueIterator()
valueIterator
in interface Iteratorable
valueIterator
in class StructSupport
Iteratorable.iterator()
public boolean containsKey(Collection.Key key)
Collection
railo.runtime.type.Collection#_contains(java.lang.String)
public boolean containsValue(Object value)
containsValue
in interface Map
containsValue
in class StructSupport
Map.containsValue(java.lang.Object)
public Collection values()
values
in interface Map
values
in class StructSupport
Map.values()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |