public interface Collection extends Dumpable, Iteratorable, Cloneable, Serializable, Castable, ForEachIteratorable
Modifier and Type | Interface and Description |
---|---|
static interface |
Collection.Key |
Modifier and Type | Method and Description |
---|---|
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() |
toDumpData
entryIterator, keyIterator, keysAsStringIterator, valueIterator
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo
getIterator
int size()
Collection.Key[] keys()
keyIterator()
Object remove(Collection.Key key) throws PageException
key
- key of the collectionPageException
Object removeEL(Collection.Key key)
key
- key of the collectionvoid clear()
Object get(String key) throws PageException
get(lucee.runtime.type.Collection.Key)
key
- key of the value to getPageException
Object get(Collection.Key key) throws PageException
key
- key of the value to get must be lower casePageException
Object get(String key, Object defaultValue)
get(lucee.runtime.type.Collection.Key, Object)
key
- key of the value to getObject get(Collection.Key key, Object defaultValue)
key
- key of the value to getObject set(String key, Object value) throws PageException
set(lucee.runtime.type.Collection.Key, Object)
key
- key of the new valuevalue
- value to setPageException
Object set(Collection.Key key, Object value) throws PageException
key
- key of the new valuevalue
- value to setPageException
Object setEL(String key, Object value)
setEL(lucee.runtime.type.Collection.Key, Object)
key
- key of the value to getvalue
- value to setObject setEL(Collection.Key key, Object value)
key
- key of the value to getvalue
- value to setCollection duplicate(boolean deepCopy)
boolean containsKey(String key)
containsKey(lucee.runtime.type.Collection.Key)
key
- boolean containsKey(Collection.Key key)
key
- Copyright © 2015 Lucee