|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Collection
interface collection, used for all collection types of railo (array, struct, query)
Nested Class Summary | |
---|---|
static interface |
Collection.Key
|
Method Summary | |
---|---|
void |
clear()
clears the collection |
Object |
clone()
|
boolean |
containsKey(Collection.Key key)
contains this key |
boolean |
containsKey(String key)
Deprecated. use instead
|
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 |
Object |
get(String key)
Deprecated. use instead
|
Object |
get(String key,
Object defaultValue)
Deprecated. use instead
|
Collection.Key[] |
keys()
Deprecated. use instead keyIterator() |
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 |
set(String key,
Object value)
Deprecated. use instead
|
Object |
setEL(Collection.Key key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null |
Object |
setEL(String key,
Object value)
Deprecated. use instead
|
int |
size()
|
Methods inherited from interface railo.runtime.dump.Dumpable |
---|
toDumpData |
Methods inherited from interface railo.runtime.type.Iteratorable |
---|
entryIterator, keyIterator, keysAsStringIterator, valueIterator |
Methods inherited from interface railo.runtime.op.Castable |
---|
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo |
Methods inherited from interface railo.runtime.type.ForEachIteratorable |
---|
getIterator |
Method Detail |
---|
int size()
Collection.Key[] keys()
keyIterator()
Object remove(Collection.Key key) throws PageException
key
- key of the collection
PageException
Object removeEL(Collection.Key key)
key
- key of the collection
void clear()
Object get(String key) throws PageException
get(railo.runtime.type.Collection.Key)
key
- key of the value to get
PageException
Object get(Collection.Key key) throws PageException
key
- key of the value to get must be lower case
PageException
Object get(String key, Object defaultValue)
get(railo.runtime.type.Collection.Key, Object)
key
- key of the value to get
Object get(Collection.Key key, Object defaultValue)
key
- key of the value to get
Object set(String key, Object value) throws PageException
set(railo.runtime.type.Collection.Key, Object)
key
- key of the new valuevalue
- value to set
PageException
Object set(Collection.Key key, Object value) throws PageException
key
- key of the new valuevalue
- value to set
PageException
Object setEL(String key, Object value)
setEL(railo.runtime.type.Collection.Key, Object)
key
- key of the value to getvalue
- value to set
Object setEL(Collection.Key key, Object value)
key
- key of the value to getvalue
- value to set
Object clone()
Collection duplicate(boolean deepCopy)
boolean containsKey(String key)
containsKey(railo.runtime.type.Collection.Key)
key
-
boolean containsKey(Collection.Key key)
key
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |