public interface Collection extends Dumpable, Iteratorable, java.lang.Cloneable, java.io.Serializable, Castable, ForEachIteratorable
Modifier and Type | Interface and Description |
---|---|
static interface |
Collection.Key |
Modifier and Type | Method and Description |
---|---|
void |
clear()
clears the collection
|
java.lang.Object |
clone() |
boolean |
containsKey(Collection.Key key)
contains this key
|
boolean |
containsKey(java.lang.String key)
Deprecated.
use instead
|
Collection |
duplicate(boolean deepCopy) |
java.lang.Object |
get(Collection.Key key)
return a value from the collection
|
java.lang.Object |
get(Collection.Key key,
java.lang.Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null
|
java.lang.Object |
get(java.lang.String key)
Deprecated.
use instead
|
java.lang.Object |
get(java.lang.String key,
java.lang.Object defaultValue)
Deprecated.
use instead
|
Collection.Key[] |
keys()
Deprecated.
use instead
keyIterator() |
java.lang.Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception
|
java.lang.Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null
|
java.lang.Object |
set(Collection.Key key,
java.lang.Object value)
sets a value to the collection
|
java.lang.Object |
set(java.lang.String key,
java.lang.Object value)
Deprecated.
use instead
|
java.lang.Object |
setEL(Collection.Key key,
java.lang.Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null
|
java.lang.Object |
setEL(java.lang.String key,
java.lang.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()
java.lang.Object remove(Collection.Key key) throws PageException
key
- key of the collectionPageException
java.lang.Object removeEL(Collection.Key key)
key
- key of the collectionvoid clear()
java.lang.Object get(java.lang.String key) throws PageException
get(lucee.runtime.type.Collection.Key)
key
- key of the value to getPageException
java.lang.Object get(Collection.Key key) throws PageException
key
- key of the value to get must be lower casePageException
java.lang.Object get(java.lang.String key, java.lang.Object defaultValue)
get(lucee.runtime.type.Collection.Key, Object)
key
- key of the value to getjava.lang.Object get(Collection.Key key, java.lang.Object defaultValue)
key
- key of the value to getjava.lang.Object set(java.lang.String key, java.lang.Object value) throws PageException
set(lucee.runtime.type.Collection.Key, Object)
key
- key of the new valuevalue
- value to setPageException
java.lang.Object set(Collection.Key key, java.lang.Object value) throws PageException
key
- key of the new valuevalue
- value to setPageException
java.lang.Object setEL(java.lang.String key, java.lang.Object value)
setEL(lucee.runtime.type.Collection.Key, Object)
key
- key of the value to getvalue
- value to setjava.lang.Object setEL(Collection.Key key, java.lang.Object value)
key
- key of the value to getvalue
- value to setjava.lang.Object clone()
Collection duplicate(boolean deepCopy)
boolean containsKey(java.lang.String key)
containsKey(lucee.runtime.type.Collection.Key)
key
- boolean containsKey(Collection.Key key)
key
-