Packagecom.yworks.support
Classpublic class ReadOnlyList
InheritanceReadOnlyList Inheritance flash.utils.Proxy
Implements List

A List implementation that acts as an immutable wrapper for a List.



Public Methods
 MethodDefined By
  
ReadOnlyList
  
addAll(it:Iterable):void
Not supported by this implementation.
ReadOnlyList
  
addItem(item:Object):Boolean
Not supported by this implementation.
ReadOnlyList
  
clear():void
Not supported by this implementation.
ReadOnlyList
  
contains(item:Object):Boolean
Returns true if this collection contains the specified element.
ReadOnlyList
  
getItemAt(index:int):Object
Returns the element at the specified position in this collection.
ReadOnlyList
  
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.
ReadOnlyList
  
insert(item:Object, index:uint):void
Not supported by this implementation.
ReadOnlyList
  
isEmpty():Boolean
Returns true if this collection contains no elements.
ReadOnlyList
  
Returns an iterator over a set of elements.
ReadOnlyList
  
length():uint
Returns the number of elements in this collection.
ReadOnlyList
  
removeAt(index:uint):void
Not supported by this implementation.
ReadOnlyList
  
removeItem(item:Object):Boolean
Not supported by this implementation.
ReadOnlyList
  
sort(comparisonFunction:Function = null, sortOptions:int = -1):void
Not supported by this implementation.
ReadOnlyList
  
toArray():Array
Returns an array containing all of the elements in this collection.
ReadOnlyList
Constructor Detail
ReadOnlyList()Constructor
public function ReadOnlyList(wrapped:List)



Parameters
wrapped:List
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 true if this collection contains no elements.

Returns
Boolean — true if this collection contains no elements
iterator()method 
public function iterator():Iterator

Returns an iterator over a set of elements.

Returns
Iterator — an Iterator.
length()method 
public function length():uint

Returns the number of elements in this collection.

Returns
uint — the number of elements in this collection
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

Not supported by this implementation.

Parameters

comparisonFunction:Function (default = null)
 
sortOptions:int (default = -1)


Throws
flash.errors:IllegalOperationError — always
toArray()method 
public function toArray():Array

Returns an array containing all of the elements in this collection.

Returns
Array — an array containing all of the elements in this collection