Wraps an Array in the common IFlatCollection API used for data collections by many Feathers UI controls, including ListBox and TabBar

Available since

1.0.0

.

Constructor

new (?array:Array<T>)

Variables

@:value(null)array:Array<T> = null

The Array data source for this collection.

Available since

1.0.0

.

read onlylength:Int

The number of items in the collection.

Available since

1.0.0

.

Methods

add (item:T):Void

Inserts an item at the end of the collection, increasing the length by one.

Available since

1.0.0

.

addAt (item:T, index:Int):Void

Inserts an item into the collection at the specified index, increasing the length by one.

Available since

1.0.0

.

get (index:Int):T

Returns the item at the specified index in the collection.

Available since

1.0.0

.

remove (item:T):Void

Removes a specific item from the collection, decreasing the length by one, if the item is in the collection.

Available since

1.0.0

.

removeAll ():Void

Removes all items from the collection, decreasing its length to zero.

Available since

1.0.0

.

removeAt (index:Int):T

Removes an item from the collection at the specified index, decreasing the length by one.

Available since

1.0.0

.

set (item:T, index:Int):Void

Replaces the item at the specified index in the collection with a new item.

Available since

1.0.0

.