public final class CastableArray extends ArrayImpl
Collection.Key
TYPE_BOOLEAN, TYPE_BYTE, TYPE_CHARACTER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT, TYPE_LONG, TYPE_OBJECT, TYPE_SHORT, TYPE_STRING
Constructor and Description |
---|
CastableArray()
Constructor of the class
generates as string list of the array
|
CastableArray(Object value) |
CastableArray(Object value,
int initalCapacity) |
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
|
int |
compareTo(boolean b) |
int |
compareTo(DateTime dt) |
int |
compareTo(double d) |
int |
compareTo(String str) |
Collection |
duplicate(boolean deepCopy) |
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML
|
_append, append, appendEL, clear, ensureCapacity, entryIterator, get, get, get, get, get, getDimension, getE, insert, intKeys, iterator, keyIterator, keys, keysAsStringIterator, prepend, remove, removeE, removeEL, removeEL, resize, set, set, setE, setEL, setEL, setEL, size, sizeOf, sort, toArray, toPlain
add, addAll, call, callWithNamedValues, clone, containsKey, containsKey, containsKey, equals, get, get, get, getIterator, remove, remove, removeAll, retainAll, set, set, setEL, sort, toArray, toList, toString, valueIterator
add, addAll, hashCode, indexOf, lastIndexOf, listIterator, listIterator, subList
contains, containsAll, isEmpty
add, addAll, contains, containsAll, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, subList
public CastableArray()
public CastableArray(Object value)
public CastableArray(Object value, int initalCapacity)
public Collection duplicate(boolean deepCopy)
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
castToBooleanValue
in class ArraySupport
PageException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
castToBoolean
in class ArraySupport
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
castToDateTime
in class ArraySupport
PageException
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
castToDateTime
in class ArraySupport
defaultValue
- returned when it is not possible to cast to a dateTime objectpublic double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class ArraySupport
PageException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class ArraySupport
public String castToString() throws PageException
Castable
castToString
in interface Castable
castToString
in class ArraySupport
PageException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
castToString
in class ArraySupport
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
compareTo
in class ArraySupport
PageException
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
compareTo
in class ArraySupport
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
compareTo
in class ArraySupport
PageException
public int compareTo(String str) throws PageException
compareTo
in interface Castable
compareTo
in class ArraySupport
PageException
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class ArrayImpl
Copyright © 2015 Lucee