public class ReadOnlyStruct extends StructImpl
Collection.Key
TYPE_UNDEFINED
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED
Constructor and Description |
---|
ReadOnlyStruct() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
clears the collection
|
Collection |
duplicate(boolean deepCopy) |
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception
|
void |
removeAll() |
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
|
void |
setReadOnly(boolean isReadOnly)
sets if scope is readonly or not
|
containsKey, containsValue, copy, entryIterator, equals, g, g, get, get, getType, hashCode, keyIterator, keys, keysAsStringIterator, remove, size, valueIterator, values
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
public ReadOnlyStruct()
public void setReadOnly(boolean isReadOnly)
isReadOnly
- public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
remove
in class StructImpl
key
- key of the collectionPageException
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
removeEL
in class StructImpl
key
- key of the collectionpublic void removeAll()
public Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
set
in class StructImpl
key
- key of the new valuevalue
- value to setPageException
public Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
setEL
in class StructImpl
key
- key of the value to getvalue
- value to setpublic Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
duplicate
in class StructImpl
public void clear()
Collection
clear
in interface Map
clear
in interface Collection
clear
in class StructImpl
Copyright © 2015 Lucee