|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.util.ArraySupport
public abstract class ArraySupport
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface railo.runtime.type.Collection |
---|
Collection.Key |
Field Summary | |
---|---|
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 Summary | |
---|---|
ArraySupport()
|
Method Summary | |
---|---|
void |
add(int index,
Object element)
|
boolean |
add(Object o)
adds a value and return this array |
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection c)
|
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 |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
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)
|
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
Object |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object element)
|
List |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray(Object[] a)
|
List |
toList()
|
String |
toString()
|
Iterator |
valueIterator()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface railo.runtime.type.Array |
---|
append, appendEL, get, getDimension, getE, insert, intKeys, prepend, removeE, removeEL, resize, setE, setEL, sort, toArray |
Methods inherited from interface railo.runtime.type.Collection |
---|
clear, duplicate, get, get, get, get, keys, keysAsString, remove, removeEL, set, set, setEL, setEL, size |
Methods inherited from interface railo.runtime.dump.Dumpable |
---|
toDumpData |
Methods inherited from interface railo.runtime.type.Iteratorable |
---|
iterator, keyIterator |
Methods inherited from interface java.util.List |
---|
clear, hashCode, iterator, size, toArray |
Methods inherited from interface railo.runtime.type.Sizeable |
---|
sizeOf |
Field Detail |
---|
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
Constructor Detail |
---|
public ArraySupport()
Method Detail |
---|
public final void add(int index, Object element)
add
in interface List
java.util.List#add(int, E)
public final boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface List
List.addAll(java.util.Collection)
public final boolean addAll(int index, Collection c)
addAll
in interface List
List.addAll(int, java.util.Collection)
public boolean add(Object o)
add
in interface Collection
add
in interface List
o
-
public final boolean contains(Object o)
contains
in interface Collection
contains
in interface List
List.contains(java.lang.Object)
public final boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in interface List
List.containsAll(java.util.Collection)
public final int indexOf(Object o)
indexOf
in interface List
List.indexOf(java.lang.Object)
public final boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface List
List.isEmpty()
public final int lastIndexOf(Object o)
lastIndexOf
in interface List
List.lastIndexOf(java.lang.Object)
public final ListIterator listIterator()
listIterator
in interface List
List.listIterator()
public final ListIterator listIterator(int index)
listIterator
in interface List
List.listIterator(int)
public final boolean remove(Object o)
remove
in interface Collection
remove
in interface List
List.remove(java.lang.Object)
public final boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface List
List.removeAll(java.util.Collection)
public final boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface List
List.retainAll(java.util.Collection)
public final List subList(int fromIndex, int toIndex)
subList
in interface List
List.subList(int, int)
public final Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface List
java.util.List#toArray(T[])
public final Object get(int index)
get
in interface List
List.get(int)
public final Object remove(int index)
remove
in interface List
List.remove(int)
public final Object set(int index, Object element)
set
in interface List
List.set(int, java.lang.Object)
public boolean containsKey(String key)
Collection
Collection.containsKey(java.lang.String)
public boolean containsKey(Collection.Key key)
Collection
railo.runtime.type.Collection#_contains(java.lang.String)
public boolean containsKey(int key)
Array
containsKey
in interface Array
Array.containsKey(int)
public String toString()
toString
in class Object
Object.toString()
public Object clone()
clone
in class Object
Object.clone()
public String castToString() throws PageException
Castable
castToString
in interface Castable
PageException
Castable.castToString()
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
Castable.castToString(java.lang.String)
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
PageException
Castable.castToBooleanValue()
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
Castable.castToBoolean(java.lang.Boolean)
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
PageException
Castable.castToDoubleValue()
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
Castable.castToDoubleValue(double)
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
PageException
Castable.castToDateTime()
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
defaultValue
- returned when it is not possible to cast to a dateTime object
Castable.castToDateTime(railo.runtime.type.dt.DateTime)
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
PageException
railo.runtime.op.Castable#compare(boolean)
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(railo.runtime.type.dt.DateTime)
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(double)
public int compareTo(String str) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(java.lang.String)
public List toList()
toList
in interface Array
Array.toList()
public Iterator valueIterator()
valueIterator
in interface Iteratorable
Iteratorable.valueIterator()
public boolean equals(Object obj)
equals
in interface Collection
equals
in interface List
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |