public abstract class ArraySupport extends AbstractList implements Array, List, Sizeable, Objects
Collection.Key
Modifier and Type | Field and Description |
---|---|
static short |
TYPE_BOOLEAN |
static short |
TYPE_BYTE |
static short |
TYPE_CHARACTER |
static short |
TYPE_DOUBLE |
static short |
TYPE_FLOAT |
static short |
TYPE_INT |
static short |
TYPE_LONG |
static short |
TYPE_OBJECT |
static short |
TYPE_SHORT |
static short |
TYPE_STRING |
Constructor and Description |
---|
ArraySupport() |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Object element) |
boolean |
addAll(Collection c) |
Object |
call(PageContext pc,
Collection.Key methodName,
Object[] args)
calls a method of the object
|
Object |
callWithNamedValues(PageContext pc,
Collection.Key methodName,
Struct args)
call a method of the Object with named arguments
|
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
|
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(int key)
contains this key
|
boolean |
containsKey(String key)
contains this key
|
boolean |
equals(Object obj) |
Object |
get(int index) |
Object |
get(PageContext pc,
Collection.Key key)
return property or getter of the ContextCollection
|
Object |
get(PageContext pc,
Collection.Key key,
Object defaultValue)
return property
|
Iterator<Object> |
getIterator() |
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
Object |
set(int index,
Object element) |
Object |
set(PageContext pc,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object
|
Object |
setEL(PageContext pc,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object
|
void |
sort(String sortType,
String sortOrder)
sort values of a array
|
Object[] |
toArray(Object[] a) |
List |
toList() |
String |
toString() |
Iterator<Object> |
valueIterator() |
add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
contains, containsAll, isEmpty, size, toArray
append, appendEL, get, getDimension, getE, insert, intKeys, prepend, removeE, removeEL, resize, setE, setEL, sort, toArray
clear, duplicate, get, get, get, get, keys, remove, removeEL, set, set, setEL, setEL, size
entryIterator, keyIterator, keysAsStringIterator
toDumpData
add, addAll, clear, contains, containsAll, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, size, subList, toArray
public static final short TYPE_OBJECT
public static final short TYPE_BOOLEAN
public static final short TYPE_BYTE
public static final short TYPE_SHORT
public static final short TYPE_INT
public static final short TYPE_LONG
public static final short TYPE_FLOAT
public static final short TYPE_DOUBLE
public static final short TYPE_CHARACTER
public static final short TYPE_STRING
public ArraySupport()
public final void add(int index, Object element)
add
in interface List
add
in class AbstractList
public final boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface List
addAll
in class AbstractCollection
public final boolean remove(Object o)
remove
in interface Collection
remove
in interface List
remove
in class AbstractCollection
public final boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface List
removeAll
in class AbstractCollection
public final boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface List
retainAll
in class AbstractCollection
public final Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface List
toArray
in class AbstractCollection
public final Object get(int index)
get
in interface List
get
in class AbstractList
public final Object remove(int index)
remove
in interface List
remove
in class AbstractList
public final Object set(int index, Object element)
set
in interface List
set
in class AbstractList
public boolean containsKey(String key)
Collection
public boolean containsKey(Collection.Key key)
Collection
public boolean containsKey(int key)
Array
containsKey
in interface Array
public String toString()
toString
in class AbstractCollection
public String castToString() throws PageException
Castable
castToString
in interface Castable
PageException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
PageException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
PageException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
PageException
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
defaultValue
- returned when it is not possible to cast to a dateTime objectpublic int compareTo(boolean b) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(String str) throws PageException
compareTo
in interface Castable
PageException
public Iterator<Object> valueIterator()
valueIterator
in interface Iteratorable
public Object get(PageContext pc, Collection.Key key, Object defaultValue)
Objects
public Object get(PageContext pc, Collection.Key key) throws PageException
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the PropertyPageException
public Object set(PageContext pc, Collection.Key propertyName, Object value) throws PageException
Objects
set
in interface Objects
propertyName
- property name to setvalue
- value to insertPageException
public Object setEL(PageContext pc, Collection.Key propertyName, Object value)
Objects
public Object call(PageContext pc, Collection.Key methodName, Object[] args) throws PageException
Objects
call
in interface Objects
methodName
- name of the method to callargs
- arguments to call method withPageException
public Object callWithNamedValues(PageContext pc, Collection.Key methodName, Struct args) throws PageException
Objects
callWithNamedValues
in interface Objects
pc
- PageContextmethodName
- name of the methodargs
- Named Arguments for the methodPageException
public Iterator<Object> getIterator()
getIterator
in interface ForEachIteratorable
public void sort(String sortType, String sortOrder) throws PageException
Array
sort
in interface Array
sortType
- search type (text,textnocase,numeric)sortOrder
- (asc,desc)PageException
public boolean equals(Object obj)
equals
in interface Collection
equals
in interface List
equals
in class AbstractList
Copyright © 2015 Lucee