|
||||||||||
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
CFML 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 |
---|
Fields inherited from interface railo.runtime.type.Struct |
---|
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, 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)
|
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator()
|
boolean |
equals(Object obj)
|
Object |
g(Collection.Key key)
|
Object |
g(Collection.Key key,
Object defaultValue)
|
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 |
int |
hashCode()
|
Iterator<Collection.Key> |
keyIterator()
|
Collection.Key[] |
keys()
|
Iterator<String> |
keysAsStringIterator()
|
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception |
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<Object> |
valueIterator()
|
Collection<Object> |
values()
|
Methods inherited from class railo.runtime.type.util.StructSupport |
---|
call, callWithNamedValues, castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clone, compareTo, compareTo, compareTo, compareTo, containsKey, containsKey, entrySet, get, get, get, get, get, getIterator, invalidKey, isEmpty, keySet, put, putAll, remove, set, set, setEL, setEL, sizeOf, toDumpData, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
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
public Object g(Collection.Key key, Object defaultValue)
public Object g(Collection.Key key) throws PageException
PageException
public Object get(Collection.Key key) throws PageException
Collection
key
- key of the value to get must be lower case
PageException
public Object set(Collection.Key key, Object value) throws PageException
Collection
key
- key of the new valuevalue
- value to set
PageException
public Object setEL(Collection.Key key, Object value)
Collection
key
- key of the value to getvalue
- value to set
public int size()
public Collection.Key[] keys()
public Object remove(Collection.Key key) throws PageException
Collection
key
- key of the collection
PageException
public Object removeEL(Collection.Key key)
Collection
key
- key of the collection
public void clear()
Collection
public Collection duplicate(boolean deepCopy)
public static void copy(Struct src, Struct trg, boolean deepCopy)
public Iterator<Collection.Key> keyIterator()
public Iterator<String> keysAsStringIterator()
keysAsStringIterator
in interface Iteratorable
keysAsStringIterator
in class StructSupport
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
public Iterator<Object> valueIterator()
public boolean containsKey(Collection.Key key)
Collection
public boolean containsValue(Object value)
containsValue
in interface Map
containsValue
in class StructSupport
public Collection<Object> values()
values
in interface Map
values
in class StructSupport
public int hashCode()
hashCode
in interface Map
hashCode
in class StructSupport
public boolean equals(Object obj)
equals
in interface Map
equals
in class StructSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |