Package | com.yworks.support |
Class | public class SingletonList |
Inheritance | SingletonList flash.utils.Proxy |
Implements | List |
Method | Defined By | ||
---|---|---|---|
SingletonList(value:Object)
Creates a new instance that holds the provided singleton value. | SingletonList | ||
Not supported by this implementation. | SingletonList | ||
addItem(item:Object):Boolean
Not supported by this implementation. | SingletonList | ||
clear():void
Not supported by this implementation. | SingletonList | ||
contains(item:Object):Boolean
Returns true if this collection contains the specified element. | SingletonList | ||
getItemAt(index:int):Object
Returns the element at the specified position in this collection. | SingletonList | ||
indexOf(item:Object):int
Returns the index of the first occurrence of the specified element in this list,
or -1 if this list does not contain the element. | SingletonList | ||
insert(item:Object, index:uint):void
Not supported by this implementation. | SingletonList | ||
isEmpty():Boolean | SingletonList | ||
SingletonList | |||
length():uint | SingletonList | ||
removeAt(index:uint):void
Not supported by this implementation. | SingletonList | ||
removeItem(item:Object):Boolean
Not supported by this implementation. | SingletonList | ||
sort(comparisonFunction:Function = null, sortOptions:int = -1):void
Sorts the List by using a comparisionFunction. | SingletonList | ||
toArray():Array | SingletonList |
SingletonList | () | Constructor |
public function SingletonList(value:Object)
Creates a new instance that holds the provided singleton value.
Parametersvalue:Object |
addAll | () | method |
public function addAll(it:Iterable):void
Not supported by this implementation.
Parameters
it:Iterable |
flash.errors:IllegalOperationError — always
|
addItem | () | method |
public function addItem(item:Object):Boolean
Not supported by this implementation.
Parameters
item:Object |
Boolean |
flash.errors:IllegalOperationError — always
|
clear | () | method |
public function clear():void
Not supported by this implementation.
flash.errors:IllegalOperationError — always
|
contains | () | method |
public function contains(item:Object):Boolean
Returns true if this collection contains the specified element.
Parameters
item:Object — element whose presence in this collection is to be tested
|
Boolean — true if this collection contains the specified element
|
getItemAt | () | method |
public function getItemAt(index:int):Object
Returns the element at the specified position in this collection.
Parameters
index:int — the index of the element to return
|
Object — the element at the specified position in this list
|
indexOf | () | method |
public function indexOf(item:Object):int
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
Parameters
item:Object — the element to search for
|
int — the index of the first occurrence of the specified element in this list,
or -1 if this list does not contain the element
|
insert | () | method |
public function insert(item:Object, index:uint):void
Not supported by this implementation.
Parameters
item:Object | |
index:uint |
flash.errors:IllegalOperationError — always
|
isEmpty | () | method |
public function isEmpty():Boolean
Returns
Boolean — false
|
iterator | () | method |
length | () | method |
public function length():uint
Returnsuint |
removeAt | () | method |
public function removeAt(index:uint):void
Not supported by this implementation.
Parameters
index:uint |
flash.errors:IllegalOperationError — always
|
removeItem | () | method |
public function removeItem(item:Object):Boolean
Not supported by this implementation.
Parameters
item:Object |
Boolean |
flash.errors:IllegalOperationError — always
|
sort | () | method |
public function sort(comparisonFunction:Function = null, sortOptions:int = -1):void
Sorts the List by using a comparisionFunction.
Parameters
comparisonFunction:Function (default = null ) — A function used for comparison
| |
sortOptions:int (default = -1 ) — An optional option parameter
|
toArray | () | method |
public function toArray():Array
ReturnsArray |