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

.

@:isVarfilterFunction:T ‑> Bool

Available since

1.0.0

.

@:isVarsortCompareFunction:T ‑> T ‑> Int

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

.

addAll (collection:IFlatCollection<T>):Void

Available since

1.0.0

.

addAllAt (collection:IFlatCollection<T>, index:Int):Void

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

.

contains (item:T):Bool

Available since

1.0.0

.

get (index:Int):T

Returns the item at the specified index in the collection.

Available since

1.0.0

.

indexOf (item:T):Int

Returns the index of the specified item, or -1 if the item is not in the collection.

Available since

1.0.0

.

iterator ():Iterator<T>

Available since

1.0.0

.

refresh ():Void

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

.

@:value({ collection : null })reset (?collection:IFlatCollection<T>):Void

Available since

1.0.0

.

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

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

Available since

1.0.0

.

updateAll ():Void

Available since

1.0.0

.

updateAt (index:Int):Void

Available since

1.0.0

.