Packagecom.yworks.support
Classpublic class SingletonList
InheritanceSingletonList Inheritance flash.utils.Proxy
Implements List

A lightweight list that contains exactly one single item.



Public Methods
 MethodDefined By
  
SingletonList(value:Object)
Creates a new instance that holds the provided singleton value.
SingletonList
  
addAll(it:Iterable):void
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
Constructor Detail
SingletonList()Constructor
public function SingletonList(value:Object)

Creates a new instance that holds the provided singleton value.

Parameters
value:Object
Method Detail
addAll()method
public function addAll(it:Iterable):void

Not supported by this implementation.

Parameters

it:Iterable


Throws
flash.errors:IllegalOperationError — always
addItem()method 
public function addItem(item:Object):Boolean

Not supported by this implementation.

Parameters

item:Object

Returns
Boolean

Throws
flash.errors:IllegalOperationError — always
clear()method 
public function clear():void

Not supported by this implementation.


Throws
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

Returns
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

Returns
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

Returns
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


Throws
flash.errors:IllegalOperationError — always
isEmpty()method 
public function isEmpty():Boolean

Returns
Boolean — false
iterator()method 
public function iterator():Iterator

Returns
Iterator
length()method 
public function length():uint

Returns
uint
removeAt()method 
public function removeAt(index:uint):void

Not supported by this implementation.

Parameters

index:uint


Throws
flash.errors:IllegalOperationError — always
removeItem()method 
public function removeItem(item:Object):Boolean

Not supported by this implementation.

Parameters

item:Object

Returns
Boolean

Throws
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

Returns
Array