public class TOStruct extends TOObjects implements Struct
Collection.Key
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED
Modifier and Type | Method and Description |
---|---|
Boolean |
castToBoolean(Boolean defaultValue)
cast the castable value to a boolean value
|
boolean |
castToBooleanValue()
cast the castable value to a boolean value
|
DateTime |
castToDateTime()
cast the castable value to a date time object
|
DateTime |
castToDateTime(DateTime defaultValue)
cast the castable value to a date time object
|
double |
castToDoubleValue()
cast the castable value to a double value
|
double |
castToDoubleValue(double defaultValue)
cast the castable value to a double value
|
String |
castToString()
cast the castable value to a string, other than the Method toString, this Method can throw a Exception
|
String |
castToString(String defaultValue)
cast the castable value to a string, return the default value, when the method is not castable
|
void |
clear()
clears the collection
|
Object |
clone() |
int |
compareTo(boolean b) |
int |
compareTo(DateTime dt) |
int |
compareTo(double d) |
int |
compareTo(String str) |
boolean |
containsKey(Collection.Key key)
contains this key
|
boolean |
containsKey(Object key) |
boolean |
containsKey(String key)
contains this key
|
boolean |
containsValue(Object value) |
Collection |
duplicate(boolean deepCopy) |
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator() |
Set |
entrySet() |
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(Object key) |
Object |
get(String key)
return a value from the collection
|
Object |
get(String key,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null
|
Iterator<String> |
getIterator() |
boolean |
isEmpty() |
Iterator<Collection.Key> |
keyIterator() |
Collection.Key[] |
keys() |
Iterator<String> |
keysAsStringIterator() |
Set |
keySet() |
Object |
put(Object key,
Object value) |
void |
putAll(Map m) |
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception
|
Object |
remove(Object key) |
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)
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
|
Object |
setEL(String key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null
|
int |
size() |
long |
sizeOf()
return the size of the object
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties properties)
method to print out information to a object as HTML
|
Iterator<Object> |
valueIterator() |
Collection |
values() |
call, callWithNamedValues, get, get, isInitalized, set, setEL
equals, log, toString, toTraceObject
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, clone, containsKey, containsKey, get, get, get, get, keys, remove, removeEL, set, set, setEL, setEL, size
entryIterator, keyIterator, keysAsStringIterator, valueIterator
call, callWithNamedValues, get, get, set, setEL
toDumpData
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public Collection values()
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
public long sizeOf()
Sizeable
public Iterator<String> getIterator()
getIterator
in interface ForEachIteratorable
public Object clone()
clone
in interface Collection
clone
in class Object
public Iterator<Collection.Key> keyIterator()
keyIterator
in interface Iteratorable
public Iterator<String> keysAsStringIterator()
keysAsStringIterator
in interface Iteratorable
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
entryIterator
in interface Iteratorable
public Iterator<Object> valueIterator()
valueIterator
in interface Iteratorable
public String castToString() throws PageException
Castable
castToString
in interface Castable
castToString
in class TOObjects
PageException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
castToString
in class TOObjects
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
castToBooleanValue
in class TOObjects
PageException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
castToBoolean
in class TOObjects
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class TOObjects
PageException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class TOObjects
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
castToDateTime
in class TOObjects
PageException
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
castToDateTime
in class TOObjects
defaultValue
- returned when it is not possible to cast to a dateTime objectpublic int compareTo(String str) throws PageException
compareTo
in interface Castable
compareTo
in class TOObjects
PageException
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
compareTo
in class TOObjects
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
compareTo
in class TOObjects
PageException
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
compareTo
in class TOObjects
PageException
public int size()
size
in interface Collection
public Collection.Key[] keys()
keys
in interface Collection
public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
key
- key of the collectionPageException
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
key
- key of the collectionpublic void clear()
Collection
clear
in interface Collection
public Object get(String key) throws PageException
Collection
get
in interface Collection
key
- key of the value to getPageException
public Object get(Collection.Key key) throws PageException
Collection
get
in interface Collection
key
- key of the value to get must be lower casePageException
public Object get(String key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to getpublic Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to getpublic Object set(String key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to setPageException
public Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to setPageException
public Object setEL(String key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to setpublic Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to setpublic boolean containsKey(String key)
Collection
containsKey
in interface Collection
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties properties)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class TOObjects
Copyright © 2015 Lucee