IListableCollection - acadet/ludivine GitHub Wiki
IListableCollection<T>
|> ISortableCollection<T>
|> ICollection<T>
Interface for listable collections, whatever complexity they have (ArrayList, SortedList etc.). T types elements.
add(value : T) : voidAdds new item to list.
Parameters
value Value
getAt(index : number) : TGets element at specified index. Throws error if index is unbound.
Parameters
index Index
getLength() : numberGets length of list.
remove(value : T) : voidRemoves element from list. If element is in multiple times, removes only once.
Parameters
value Value
removeAt(index : number) : voidRemoves element at specified index. Throws error if index is unbound.
Parameters
index Index
removeIf(func : Func<T, boolean>) : voidRemoves all elements matching provided condition.
Parameters
func Returns true if element has to be removed