Array<T>

constructor


constructor(items: not nullable Array<not nullable T>)
Array<T>(Array<not nullable T>! items)
init(_ items: Array<not nullable T>)
Array<T>(Swift.Array<T> items)
Sub New(items As Array<not nullable T>)

Parameters:

  • items:

constructor (not nullable List<not nullable T>)

constructor(list: not nullable List<not nullable T>)
Array<T>(List<not nullable T>! list)
init(_ list: NSArray<not nullable T>)
Array<T>(ArrayList<T> list)
Sub New(list As List<not nullable T>)

Parameters:

  • list:

constructor (not nullable IEnumerable<not nullable T>)

constructor(sequence: not nullable IEnumerable<not nullable T>)
Array<T>(IEnumerable<not nullable T>! sequence)
init(_ sequence: INSFastEnumeration<not nullable T>)
Array<T>(Iterable<T> sequence)
Sub New(sequence As IEnumerable<not nullable T>)

Parameters:

  • sequence:

constructor(value: Array<T>)
Sub New(value As Array<T>)

Parameters:

  • value:

constructor withArrayLiteral(array of T)

constructor withArrayLiteral(params array: array of T)
Array<T> withArrayLiteral(params T[] array)
init(arrayLiteral array: T...)
Array<T> withArrayLiteral(T[]... array)
Sub New withArrayLiteral(ParamArray array As T())

Parameters:

  • array:

constructor withCapacity(not nullable Int)

constructor withCapacity(capacity: not nullable Int)
Array<T> withCapacity(Int! capacity)
Array<T> withCapacity(Int capacity)
Sub New withCapacity(capacity As Int)

Parameters:

  • capacity:

constructor withCopy(var original: not nullable Array<not nullable T>)
Array<T> withCopy(ref Array<not nullable T>! original)
init(copy original: inout Array<not nullable T>)
Array<T> withCopy(__ref Swift.Array<T> original)
Sub New withCopy(ByRef original As Array<not nullable T>)

Parameters:

  • original:

constructor withRepeating(not nullable T) count(not nullable Int)

constructor withRepeating(value: not nullable T) count(count: not nullable Int)
Array<T> withRepeating(T! value) count(Int! count)
init(repeating value: T, count: Int)
Array<T> withRepeating(T value) count(Int count)
Sub New withRepeating(value As T) count(count As Int)

Parameters:

  • value:
  • count:

constructor withSequence(not nullable IEnumerable<not nullable T>)

constructor withSequence(sequence: not nullable IEnumerable<not nullable T>)
Array<T> withSequence(IEnumerable<not nullable T>! sequence)
init(sequence: INSFastEnumeration<not nullable T>)
Array<T> withSequence(Iterable<T> sequence)
Sub New withSequence(sequence As IEnumerable<not nullable T>)

Parameters:

  • sequence:

add (not nullable Integer, T) Cooper

method add(arg1: not nullable Integer; arg2: T)
void add(Integer! arg1, T arg2)
func add(_ arg1: Integer, _ arg2: T)
void add(Integer arg1, T arg2)
Sub add(arg1 As Integer, arg2 As T)

Parameters:

  • arg1:
  • arg2:

add (T): not nullable Bool Cooper

method add(arg1: T): not nullable Bool
func add(_ arg1: T) -> Bool
Function add(arg1 As T) As Bool

Parameters:

  • arg1:

addAll (not nullable Integer, Collection<not nullable T>): not nullable Bool Cooper

method addAll(arg1: not nullable Integer; arg2: Collection<not nullable T>): not nullable Bool
Bool! addAll(Integer! arg1, Collection<not nullable T> arg2)
func addAll(_ arg1: Integer, _ arg2: Collection<not nullable T>) -> Bool
Bool addAll(Integer arg1, Collection<T> arg2)
Function addAll(arg1 As Integer, arg2 As Collection<not nullable T>) As Bool

Parameters:

  • arg1:
  • arg2:

addAll (Collection<not nullable T>): not nullable Bool Cooper

method addAll(arg1: Collection<not nullable T>): not nullable Bool
Bool! addAll(Collection<not nullable T> arg1)
func addAll(_ arg1: Collection<not nullable T>) -> Bool
Bool addAll(Collection<T> arg1)
Function addAll(arg1 As Collection<not nullable T>) As Bool

Parameters:

  • arg1:

append  virtual

method append(newElement: T)
void append(T newElement)
func append(_ newElement: T)
void append(T newElement)
Sub append(newElement As T)

Parameters:

  • newElement:

capacity  virtual

property capacity: not nullable Int read;
var capacity: Int { get{} }
ReadOnly Property capacity() As Int

clear Cooper


clone Cooper

Function clone() As Object

contains (Object): not nullable Bool Cooper

method contains(arg1: Object): not nullable Bool
Bool! contains(Object arg1)
func contains(_ arg1: Object) -> Bool
Bool contains(Object arg1)
Function contains(arg1 As Object) As Bool

Parameters:

  • arg1:

contains (not nullable T): not nullable Bool  virtual

method contains(item: not nullable T): not nullable Bool
func contains(_ item: T) -> Bool
Function contains(item As T) As Bool

Parameters:

  • item:

containsAll Cooper

method containsAll(arg1: Collection<not nullable T>): not nullable Bool
Bool! containsAll(Collection<not nullable T> arg1)
func containsAll(_ arg1: Collection<not nullable T>) -> Bool
Bool containsAll(Collection<T> arg1)
Function containsAll(arg1 As Collection<not nullable T>) As Bool

Parameters:

  • arg1:

count  virtual

property count: not nullable Int read;
ReadOnly Property count() As Int

description  override

method description: not nullable NativeString
NativeString! description()
func description() -> NativeString
NativeString description()
Function description() As NativeString

enumerated  virtual

method enumerated: not nullable IEnumerable<not nullable tuple of (not nullable Int, not nullable T)>
IEnumerable<not nullable tuple of (not nullable Int, not nullable T)>! enumerated()
// Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS Simulator
func enumerated() -> INSFastEnumeration<not nullable tuple of (not nullable nullable Int64, not nullable T)>
// Toffee-watchOS
func enumerated() -> INSFastEnumeration<not nullable tuple of (not nullable nullable Int32, not nullable T)>
Iterable<Tuple2<Long, T>> enumerated()
Function enumerated() As IEnumerable<not nullable tuple of (not nullable Int, not nullable T)>

equals Cooper

method equals(arg1: Object): not nullable Bool
Bool! equals(Object arg1)
func equals(_ arg1: Object) -> Bool
Function equals(arg1 As Object) As Bool

Parameters:

  • arg1:

Equals .NET, .NET Standard 2.0

method Equals(other: Object): not nullable Bool
Bool! Equals(Object other)
func Equals(_ other: Object) -> Bool
Function Equals(other As Object) As Bool

Parameters:

  • other:

method extend(array: not nullable Array<not nullable T>)
void extend(Array<not nullable T>! array)
func extend(_ array: Array<not nullable T>)
void extend(Swift.Array<T> array)
Sub extend(array As Array<not nullable T>)

Parameters:

  • array:

extend (not nullable IEnumerable<not nullable T>)  virtual

method extend(sequence: not nullable IEnumerable<not nullable T>)
void extend(IEnumerable<not nullable T>! sequence)
func extend(_ sequence: INSFastEnumeration<not nullable T>)
void extend(Iterable<T> sequence)
Sub extend(sequence As IEnumerable<not nullable T>)

Parameters:

  • sequence:

filter  virtual

method filter(includeElement: not nullable Func<not nullable T, not nullable Bool>): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! filter(Func<not nullable T, not nullable Bool>! includeElement)
func filter(_ includeElement: (T) -> Bool) -> INSFastEnumeration<not nullable T>
Iterable<T> filter(Func2<T, Boolean> includeElement)
Function filter(includeElement As Func (Of T, Bool)) As IEnumerable<not nullable T>

Parameters:

  • includeElement:

first  virtual

property first: nullable T read;
ReadOnly Property first() As T?

get Cooper

method get(arg1: not nullable Integer): not nullable T
func get(_ arg1: Integer) -> T
Function get(arg1 As Integer) As T

Parameters:

  • arg1:

GetEnumerator  virtual .NET, .NET Standard 2.0, Island

method GetEnumerator: IEnumerator<not nullable T>
IEnumerator<not nullable T> GetEnumerator()
func GetEnumerator() -> IEnumerator<not nullable T>
Function GetEnumerator() As IEnumerator<not nullable T>

GetSequence  virtual

method GetSequence: not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! GetSequence()
func GetSequence() -> INSFastEnumeration<not nullable T>
Iterable<T> GetSequence()
Function GetSequence() As IEnumerable<not nullable T>

hashCode Cooper

method hashCode: not nullable Integer
func hashCode() -> Integer
Function hashCode() As Integer

indexOf Cooper

method indexOf(arg1: Object): not nullable Integer
Integer! indexOf(Object arg1)
func indexOf(_ arg1: Object) -> Integer
Integer indexOf(Object arg1)
Function indexOf(arg1 As Object) As Integer

Parameters:

  • arg1:

insert  virtual

method insert(newElement: T) at(index: not nullable Int)
void insert(T newElement) at(Int! index)
func insert(_ newElement: T, at index: Int)
void insert(T newElement) at(Int index)
Sub insert(newElement As T) at(index As Int)

Parameters:

  • newElement:
  • index:

isEmpty Cooper

method isEmpty: not nullable Bool
Function isEmpty() As Bool

isEmpty  virtual

property isEmpty: not nullable Bool read;
var isEmpty: Bool { get{} }
ReadOnly Property isEmpty() As Bool

isEqual  override Toffee

func isEqual(_ other: Object) -> Bool

Parameters:

  • other:

Item  virtual

property Item[range: not nullable Range]: not nullable Array<not nullable T> read;
Array<not nullable T>! Item[Range! range] { get; }
subscript Item(_ range: Range) -> Array<not nullable T> { get{} }
Swift.Array<T> Item[Range range] { __get; }
ReadOnly Property Item(range As Range) As Array<not nullable T>

Item  virtual

property Item[index: not nullable Int]: not nullable T read write;
T! Item[Int! index] { get; set; }
subscript Item(_ index: Int) -> T { get{} set{} }
T Item[Int index] { __get; __set; }
Property Item(index As Int) As T

iterator Cooper

method iterator: Iterator<not nullable T>
Iterator<not nullable T> iterator()
func iterator() -> Iterator<not nullable T>
Function iterator() As Iterator<not nullable T>

last  virtual

property last: nullable T read;
ReadOnly Property last() As T?

lastIndexOf Cooper

method lastIndexOf(arg1: Object): not nullable Integer
Integer! lastIndexOf(Object arg1)
func lastIndexOf(_ arg1: Object) -> Integer
Integer lastIndexOf(Object arg1)
Function lastIndexOf(arg1 As Object) As Integer

Parameters:

  • arg1:

lazy  virtual

property lazy: not nullable IEnumerable<not nullable T> read;
IEnumerable<not nullable T>! lazy { get; }
// .NET, .NET Standard 2.0, Island
var lazy: IEnumerable<not nullable T> { get{} }
// Toffee
var lazy: INSFastEnumeration<not nullable T> { get{} }
Iterable<T> lazy { __get; }
ReadOnly Property lazy() As IEnumerable<not nullable T>

listIterator Cooper

method listIterator: ListIterator<not nullable T>
ListIterator<not nullable T> listIterator()
func listIterator() -> ListIterator<not nullable T>
ListIterator<T> listIterator()
Function listIterator() As ListIterator<not nullable T>

listIterator (not nullable Integer): ListIterator<not nullable T> Cooper

method listIterator(arg1: not nullable Integer): ListIterator<not nullable T>
ListIterator<not nullable T> listIterator(Integer! arg1)
func listIterator(_ arg1: Integer) -> ListIterator<not nullable T>
ListIterator<T> listIterator(Integer arg1)
Function listIterator(arg1 As Integer) As ListIterator<not nullable T>

Parameters:

  • arg1:

map<U>  virtual

method map<U>(transform: not nullable Func<not nullable T, not nullable U>): not nullable IEnumerable<not nullable U>
IEnumerable<not nullable U>! map<U>(Func<not nullable T, not nullable U>! transform)
func map<U>(_ transform: (T) -> U) -> INSFastEnumeration<not nullable U>
Iterable<U> map<U>(Func2<T, U> transform)
Function map<U>(transform As Func (Of T, U)) As IEnumerable<not nullable U>

Parameters:

  • transform:

nativeArray  virtual

property nativeArray: not nullable array of not nullable T read;
T![]! nativeArray { get; }
var nativeArray: T... { get{} }
T[] nativeArray { __get; }
ReadOnly Property nativeArray() As T()

platformList  virtual

property platformList: not nullable List<not nullable T> read;
List<not nullable T>! platformList { get; }
// .NET, .NET Standard 2.0, Island
var platformList: List<not nullable T> { get{} }
// Toffee
var platformList: NSMutableArray<not nullable T> { get{} }
ArrayList<T> platformList { __get; }
ReadOnly Property platformList() As List<not nullable T>

remove (not nullable Integer): T Cooper

method remove(arg1: not nullable Integer): T
func remove(_ arg1: Integer) -> T
Function remove(arg1 As Integer) As T

Parameters:

  • arg1:

remove (Object): not nullable Bool Cooper

method remove(arg1: Object): not nullable Bool
Bool! remove(Object arg1)
func remove(_ arg1: Object) -> Bool
Function remove(arg1 As Object) As Bool

Parameters:

  • arg1:

remove (T)  virtual

Parameters:

  • object:

remove at(not nullable Int): not nullable T  virtual

method remove at(index: not nullable Int): not nullable T
func remove(at index: Int) -> T
Function remove at(index As Int) As T

Parameters:

  • index:

removeAll (Collection<not nullable Object>): not nullable Bool Cooper

method removeAll(arg1: Collection<not nullable Object>): not nullable Bool
Bool! removeAll(Collection<not nullable Object> arg1)
func removeAll(_ arg1: Collection<not nullable Object>) -> Bool
Bool removeAll(Collection<Object> arg1)
Function removeAll(arg1 As Collection<not nullable Object>) As Bool

Parameters:

  • arg1:

removeAll keepCapacity(not nullable Bool)  virtual

method removeAll keepCapacity(keepCapacity: not nullable Bool := false)
void removeAll keepCapacity(Bool! keepCapacity = false)
func removeAll(keepCapacity: Bool = false)
void removeAll keepCapacity(Bool keepCapacity)
Sub removeAll keepCapacity(keepCapacity As Bool = false)

Parameters:

  • keepCapacity:

removeLast  virtual

Function removeLast() As T

replaceAll Cooper

method replaceAll(arg1: UnaryOperator<T>)
void replaceAll(UnaryOperator<T> arg1)
func replaceAll(_ arg1: UnaryOperator<T>)
void replaceAll(UnaryOperator<T> arg1)
Sub replaceAll(arg1 As UnaryOperator<T>)

Parameters:

  • arg1:

reserveCapacity  virtual

method reserveCapacity(minimumCapacity: not nullable Int)
void reserveCapacity(Int! minimumCapacity)
func reserveCapacity(_ minimumCapacity: Int)
void reserveCapacity(Int minimumCapacity)
Sub reserveCapacity(minimumCapacity As Int)

Parameters:

  • minimumCapacity:

retainAll Cooper

method retainAll(arg1: Collection<not nullable Object>): not nullable Bool
Bool! retainAll(Collection<not nullable Object> arg1)
func retainAll(_ arg1: Collection<not nullable Object>) -> Bool
Bool retainAll(Collection<Object> arg1)
Function retainAll(arg1 As Collection<not nullable Object>) As Bool

Parameters:

  • arg1:

reverse  virtual


reversed  virtual

method reversed: not nullable Array<not nullable T>
Array<not nullable T>! reversed()
func reversed() -> Array<not nullable T>
Swift.Array<T> reversed()
Function reversed() As Array<not nullable T>

set Cooper

method set(arg1: not nullable Integer; value: T): not nullable T
T! set(Integer! arg1, T value)
func set(_ arg1: Integer, _ value: T) -> T
T set(Integer arg1, T value)
Function set(arg1 As Integer, value As T) As T

Parameters:

  • arg1:
  • value:

size Cooper

method size: not nullable Integer
Function size() As Integer

sort (Comparator<Object>) Cooper

method sort(arg1: Comparator<Object>)
void sort(Comparator<Object> arg1)
func sort(_ arg1: Comparator<Object>)
void sort(Comparator<Object> arg1)
Sub sort(arg1 As Comparator<Object>)

Parameters:

  • arg1:

sort by(not nullable Func<not nullable T, not nullable T, not nullable Bool>)  virtual

method sort by(isOrderedBefore: not nullable Func<not nullable T, not nullable T, not nullable Bool>)
void sort by(Func<not nullable T, not nullable T, not nullable Bool>! isOrderedBefore)
func sort(by isOrderedBefore: (T, T) -> Bool)
void sort by(Func3<T, T, Boolean> isOrderedBefore)
Sub sort by(isOrderedBefore As Func (Of T, T, Bool))

Parameters:

  • isOrderedBefore:

sorted  virtual

method sorted by(isOrderedBefore: not nullable Func<not nullable T, not nullable T, not nullable Bool>): not nullable Array<not nullable T>
Array<not nullable T>! sorted by(Func<not nullable T, not nullable T, not nullable Bool>! isOrderedBefore)
func sorted(by isOrderedBefore: (T, T) -> Bool) -> Array<not nullable T>
Swift.Array<T> sorted by(Func3<T, T, Boolean> isOrderedBefore)
Function sorted by(isOrderedBefore As Func (Of T, T, Bool)) As Array<not nullable T>

Parameters:

  • isOrderedBefore:

spliterator Cooper

method spliterator: Spliterator<not nullable T>
Spliterator<not nullable T> spliterator()
func spliterator() -> Spliterator<not nullable T>
Spliterator<T> spliterator()
Function spliterator() As Spliterator<not nullable T>

subList Cooper

method subList(arg1: not nullable Integer; arg2: not nullable Integer): List<not nullable T>
List<not nullable T> subList(Integer! arg1, Integer! arg2)
func subList(_ arg1: Integer, _ arg2: Integer) -> List<not nullable T>
List<T> subList(Integer arg1, Integer arg2)
Function subList(arg1 As Integer, arg2 As Integer) As List<not nullable T>

Parameters:

  • arg1:
  • arg2:

swapAt  virtual

method swapAt(i: not nullable Int; j: not nullable Int)
void swapAt(Int! i, Int! j)
func swapAt(_ i: Int, _ j: Int)
void swapAt(Int i, Int j)
Sub swapAt(i As Int, j As Int)

Parameters:

  • i:
  • j:

toArray Cooper

method toArray: not nullable array of Object
func toArray() -> Object...
Function toArray() As Object()

toArray<T> Cooper

method toArray<T>(arg1: not nullable array of T): not nullable array of T
T[]! toArray<T>(T[]! arg1)
func toArray<T>(_ arg1: T...) -> T...
Function toArray<T>(arg1 As T()) As T()

Parameters:

  • arg1:

toString Cooper

func toString() -> String
Function toString() As String

capacity  virtual

property capacity: not nullable Int read;
var capacity: Int { get{} }
ReadOnly Property capacity() As Int

count  virtual

property count: not nullable Int read;
ReadOnly Property count() As Int

first  virtual

property first: nullable T read;
ReadOnly Property first() As T?

isEmpty  virtual

property isEmpty: not nullable Bool read;
var isEmpty: Bool { get{} }
ReadOnly Property isEmpty() As Bool

Item  virtual

property Item[range: not nullable Range]: not nullable Array<not nullable T> read;
Array<not nullable T>! Item[Range! range] { get; }
subscript Item(_ range: Range) -> Array<not nullable T> { get{} }
Swift.Array<T> Item[Range range] { __get; }
ReadOnly Property Item(range As Range) As Array<not nullable T>

Item  virtual

property Item[index: not nullable Int]: not nullable T read write;
T! Item[Int! index] { get; set; }
subscript Item(_ index: Int) -> T { get{} set{} }
T Item[Int index] { __get; __set; }
Property Item(index As Int) As T

last  virtual

property last: nullable T read;
ReadOnly Property last() As T?

lazy  virtual

property lazy: not nullable IEnumerable<not nullable T> read;
IEnumerable<not nullable T>! lazy { get; }
// .NET, .NET Standard 2.0, Island
var lazy: IEnumerable<not nullable T> { get{} }
// Toffee
var lazy: INSFastEnumeration<not nullable T> { get{} }
Iterable<T> lazy { __get; }
ReadOnly Property lazy() As IEnumerable<not nullable T>

nativeArray  virtual

property nativeArray: not nullable array of not nullable T read;
T![]! nativeArray { get; }
var nativeArray: T... { get{} }
T[] nativeArray { __get; }
ReadOnly Property nativeArray() As T()

platformList  virtual

property platformList: not nullable List<not nullable T> read;
List<not nullable T>! platformList { get; }
// .NET, .NET Standard 2.0, Island
var platformList: List<not nullable T> { get{} }
// Toffee
var platformList: NSMutableArray<not nullable T> { get{} }
ArrayList<T> platformList { __get; }
ReadOnly Property platformList() As List<not nullable T>

constructor


constructor(items: not nullable Array<not nullable T>)
Array<T>(Array<not nullable T>! items)
init(_ items: Array<not nullable T>)
Array<T>(Swift.Array<T> items)
Sub New(items As Array<not nullable T>)

Parameters:

  • items:

constructor (not nullable List<not nullable T>)

constructor(list: not nullable List<not nullable T>)
Array<T>(List<not nullable T>! list)
init(_ list: NSArray<not nullable T>)
Array<T>(ArrayList<T> list)
Sub New(list As List<not nullable T>)

Parameters:

  • list:

constructor (not nullable IEnumerable<not nullable T>)

constructor(sequence: not nullable IEnumerable<not nullable T>)
Array<T>(IEnumerable<not nullable T>! sequence)
init(_ sequence: INSFastEnumeration<not nullable T>)
Array<T>(Iterable<T> sequence)
Sub New(sequence As IEnumerable<not nullable T>)

Parameters:

  • sequence:

constructor(value: Array<T>)
Sub New(value As Array<T>)

Parameters:

  • value:

constructor withArrayLiteral(array of T)

constructor withArrayLiteral(params array: array of T)
Array<T> withArrayLiteral(params T[] array)
init(arrayLiteral array: T...)
Array<T> withArrayLiteral(T[]... array)
Sub New withArrayLiteral(ParamArray array As T())

Parameters:

  • array:

constructor withCapacity(not nullable Int)

constructor withCapacity(capacity: not nullable Int)
Array<T> withCapacity(Int! capacity)
Array<T> withCapacity(Int capacity)
Sub New withCapacity(capacity As Int)

Parameters:

  • capacity:

constructor withCopy(var original: not nullable Array<not nullable T>)
Array<T> withCopy(ref Array<not nullable T>! original)
init(copy original: inout Array<not nullable T>)
Array<T> withCopy(__ref Swift.Array<T> original)
Sub New withCopy(ByRef original As Array<not nullable T>)

Parameters:

  • original:

constructor withRepeating(not nullable T) count(not nullable Int)

constructor withRepeating(value: not nullable T) count(count: not nullable Int)
Array<T> withRepeating(T! value) count(Int! count)
init(repeating value: T, count: Int)
Array<T> withRepeating(T value) count(Int count)
Sub New withRepeating(value As T) count(count As Int)

Parameters:

  • value:
  • count:

constructor withSequence(not nullable IEnumerable<not nullable T>)

constructor withSequence(sequence: not nullable IEnumerable<not nullable T>)
Array<T> withSequence(IEnumerable<not nullable T>! sequence)
init(sequence: INSFastEnumeration<not nullable T>)
Array<T> withSequence(Iterable<T> sequence)
Sub New withSequence(sequence As IEnumerable<not nullable T>)

Parameters:

  • sequence:

add (not nullable Integer, T) Cooper

method add(arg1: not nullable Integer; arg2: T)
void add(Integer! arg1, T arg2)
func add(_ arg1: Integer, _ arg2: T)
void add(Integer arg1, T arg2)
Sub add(arg1 As Integer, arg2 As T)

Parameters:

  • arg1:
  • arg2:

add (T): not nullable Bool Cooper

method add(arg1: T): not nullable Bool
func add(_ arg1: T) -> Bool
Function add(arg1 As T) As Bool

Parameters:

  • arg1:

addAll (not nullable Integer, Collection<not nullable T>): not nullable Bool Cooper

method addAll(arg1: not nullable Integer; arg2: Collection<not nullable T>): not nullable Bool
Bool! addAll(Integer! arg1, Collection<not nullable T> arg2)
func addAll(_ arg1: Integer, _ arg2: Collection<not nullable T>) -> Bool
Bool addAll(Integer arg1, Collection<T> arg2)
Function addAll(arg1 As Integer, arg2 As Collection<not nullable T>) As Bool

Parameters:

  • arg1:
  • arg2:

addAll (Collection<not nullable T>): not nullable Bool Cooper

method addAll(arg1: Collection<not nullable T>): not nullable Bool
Bool! addAll(Collection<not nullable T> arg1)
func addAll(_ arg1: Collection<not nullable T>) -> Bool
Bool addAll(Collection<T> arg1)
Function addAll(arg1 As Collection<not nullable T>) As Bool

Parameters:

  • arg1:

append  virtual

method append(newElement: T)
void append(T newElement)
func append(_ newElement: T)
void append(T newElement)
Sub append(newElement As T)

Parameters:

  • newElement:

clear Cooper


clone Cooper

Function clone() As Object

contains (Object): not nullable Bool Cooper

method contains(arg1: Object): not nullable Bool
Bool! contains(Object arg1)
func contains(_ arg1: Object) -> Bool
Bool contains(Object arg1)
Function contains(arg1 As Object) As Bool

Parameters:

  • arg1:

contains (not nullable T): not nullable Bool  virtual

method contains(item: not nullable T): not nullable Bool
func contains(_ item: T) -> Bool
Function contains(item As T) As Bool

Parameters:

  • item:

containsAll Cooper

method containsAll(arg1: Collection<not nullable T>): not nullable Bool
Bool! containsAll(Collection<not nullable T> arg1)
func containsAll(_ arg1: Collection<not nullable T>) -> Bool
Bool containsAll(Collection<T> arg1)
Function containsAll(arg1 As Collection<not nullable T>) As Bool

Parameters:

  • arg1:

description  override

method description: not nullable NativeString
NativeString! description()
func description() -> NativeString
NativeString description()
Function description() As NativeString

enumerated  virtual

method enumerated: not nullable IEnumerable<not nullable tuple of (not nullable Int, not nullable T)>
IEnumerable<not nullable tuple of (not nullable Int, not nullable T)>! enumerated()
// Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-watchOS Simulator
func enumerated() -> INSFastEnumeration<not nullable tuple of (not nullable nullable Int64, not nullable T)>
// Toffee-watchOS
func enumerated() -> INSFastEnumeration<not nullable tuple of (not nullable nullable Int32, not nullable T)>
Iterable<Tuple2<Long, T>> enumerated()
Function enumerated() As IEnumerable<not nullable tuple of (not nullable Int, not nullable T)>

equals Cooper

method equals(arg1: Object): not nullable Bool
Bool! equals(Object arg1)
func equals(_ arg1: Object) -> Bool
Function equals(arg1 As Object) As Bool

Parameters:

  • arg1:

Equals .NET, .NET Standard 2.0

method Equals(other: Object): not nullable Bool
Bool! Equals(Object other)
func Equals(_ other: Object) -> Bool
Function Equals(other As Object) As Bool

Parameters:

  • other:

method extend(array: not nullable Array<not nullable T>)
void extend(Array<not nullable T>! array)
func extend(_ array: Array<not nullable T>)
void extend(Swift.Array<T> array)
Sub extend(array As Array<not nullable T>)

Parameters:

  • array:

extend (not nullable IEnumerable<not nullable T>)  virtual

method extend(sequence: not nullable IEnumerable<not nullable T>)
void extend(IEnumerable<not nullable T>! sequence)
func extend(_ sequence: INSFastEnumeration<not nullable T>)
void extend(Iterable<T> sequence)
Sub extend(sequence As IEnumerable<not nullable T>)

Parameters:

  • sequence:

filter  virtual

method filter(includeElement: not nullable Func<not nullable T, not nullable Bool>): not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! filter(Func<not nullable T, not nullable Bool>! includeElement)
func filter(_ includeElement: (T) -> Bool) -> INSFastEnumeration<not nullable T>
Iterable<T> filter(Func2<T, Boolean> includeElement)
Function filter(includeElement As Func (Of T, Bool)) As IEnumerable<not nullable T>

Parameters:

  • includeElement:

get Cooper

method get(arg1: not nullable Integer): not nullable T
func get(_ arg1: Integer) -> T
Function get(arg1 As Integer) As T

Parameters:

  • arg1:

GetEnumerator  virtual .NET, .NET Standard 2.0, Island

method GetEnumerator: IEnumerator<not nullable T>
IEnumerator<not nullable T> GetEnumerator()
func GetEnumerator() -> IEnumerator<not nullable T>
Function GetEnumerator() As IEnumerator<not nullable T>

GetSequence  virtual

method GetSequence: not nullable IEnumerable<not nullable T>
IEnumerable<not nullable T>! GetSequence()
func GetSequence() -> INSFastEnumeration<not nullable T>
Iterable<T> GetSequence()
Function GetSequence() As IEnumerable<not nullable T>

hashCode Cooper

method hashCode: not nullable Integer
func hashCode() -> Integer
Function hashCode() As Integer

indexOf Cooper

method indexOf(arg1: Object): not nullable Integer
Integer! indexOf(Object arg1)
func indexOf(_ arg1: Object) -> Integer
Integer indexOf(Object arg1)
Function indexOf(arg1 As Object) As Integer

Parameters:

  • arg1:

insert  virtual

method insert(newElement: T) at(index: not nullable Int)
void insert(T newElement) at(Int! index)
func insert(_ newElement: T, at index: Int)
void insert(T newElement) at(Int index)
Sub insert(newElement As T) at(index As Int)

Parameters:

  • newElement:
  • index:

isEmpty Cooper

method isEmpty: not nullable Bool
Function isEmpty() As Bool

isEqual  override Toffee

func isEqual(_ other: Object) -> Bool

Parameters:

  • other:

iterator Cooper

method iterator: Iterator<not nullable T>
Iterator<not nullable T> iterator()
func iterator() -> Iterator<not nullable T>
Function iterator() As Iterator<not nullable T>

lastIndexOf Cooper

method lastIndexOf(arg1: Object): not nullable Integer
Integer! lastIndexOf(Object arg1)
func lastIndexOf(_ arg1: Object) -> Integer
Integer lastIndexOf(Object arg1)
Function lastIndexOf(arg1 As Object) As Integer

Parameters:

  • arg1:

listIterator Cooper

method listIterator: ListIterator<not nullable T>
ListIterator<not nullable T> listIterator()
func listIterator() -> ListIterator<not nullable T>
ListIterator<T> listIterator()
Function listIterator() As ListIterator<not nullable T>

listIterator (not nullable Integer): ListIterator<not nullable T> Cooper

method listIterator(arg1: not nullable Integer): ListIterator<not nullable T>
ListIterator<not nullable T> listIterator(Integer! arg1)
func listIterator(_ arg1: Integer) -> ListIterator<not nullable T>
ListIterator<T> listIterator(Integer arg1)
Function listIterator(arg1 As Integer) As ListIterator<not nullable T>

Parameters:

  • arg1:

map<U>  virtual

method map<U>(transform: not nullable Func<not nullable T, not nullable U>): not nullable IEnumerable<not nullable U>
IEnumerable<not nullable U>! map<U>(Func<not nullable T, not nullable U>! transform)
func map<U>(_ transform: (T) -> U) -> INSFastEnumeration<not nullable U>
Iterable<U> map<U>(Func2<T, U> transform)
Function map<U>(transform As Func (Of T, U)) As IEnumerable<not nullable U>

Parameters:

  • transform:

remove (not nullable Integer): T Cooper

method remove(arg1: not nullable Integer): T
func remove(_ arg1: Integer) -> T
Function remove(arg1 As Integer) As T

Parameters:

  • arg1:

remove (Object): not nullable Bool Cooper

method remove(arg1: Object): not nullable Bool
Bool! remove(Object arg1)
func remove(_ arg1: Object) -> Bool
Function remove(arg1 As Object) As Bool

Parameters:

  • arg1:

remove (T)  virtual

Parameters:

  • object:

remove at(not nullable Int): not nullable T  virtual

method remove at(index: not nullable Int): not nullable T
func remove(at index: Int) -> T
Function remove at(index As Int) As T

Parameters:

  • index:

removeAll (Collection<not nullable Object>): not nullable Bool Cooper

method removeAll(arg1: Collection<not nullable Object>): not nullable Bool
Bool! removeAll(Collection<not nullable Object> arg1)
func removeAll(_ arg1: Collection<not nullable Object>) -> Bool
Bool removeAll(Collection<Object> arg1)
Function removeAll(arg1 As Collection<not nullable Object>) As Bool

Parameters:

  • arg1:

removeAll keepCapacity(not nullable Bool)  virtual

method removeAll keepCapacity(keepCapacity: not nullable Bool := false)
void removeAll keepCapacity(Bool! keepCapacity = false)
func removeAll(keepCapacity: Bool = false)
void removeAll keepCapacity(Bool keepCapacity)
Sub removeAll keepCapacity(keepCapacity As Bool = false)

Parameters:

  • keepCapacity:

removeLast  virtual

Function removeLast() As T

replaceAll Cooper

method replaceAll(arg1: UnaryOperator<T>)
void replaceAll(UnaryOperator<T> arg1)
func replaceAll(_ arg1: UnaryOperator<T>)
void replaceAll(UnaryOperator<T> arg1)
Sub replaceAll(arg1 As UnaryOperator<T>)

Parameters:

  • arg1:

reserveCapacity  virtual

method reserveCapacity(minimumCapacity: not nullable Int)
void reserveCapacity(Int! minimumCapacity)
func reserveCapacity(_ minimumCapacity: Int)
void reserveCapacity(Int minimumCapacity)
Sub reserveCapacity(minimumCapacity As Int)

Parameters:

  • minimumCapacity:

retainAll Cooper

method retainAll(arg1: Collection<not nullable Object>): not nullable Bool
Bool! retainAll(Collection<not nullable Object> arg1)
func retainAll(_ arg1: Collection<not nullable Object>) -> Bool
Bool retainAll(Collection<Object> arg1)
Function retainAll(arg1 As Collection<not nullable Object>) As Bool

Parameters:

  • arg1:

reverse  virtual


reversed  virtual

method reversed: not nullable Array<not nullable T>
Array<not nullable T>! reversed()
func reversed() -> Array<not nullable T>
Swift.Array<T> reversed()
Function reversed() As Array<not nullable T>

set Cooper

method set(arg1: not nullable Integer; value: T): not nullable T
T! set(Integer! arg1, T value)
func set(_ arg1: Integer, _ value: T) -> T
T set(Integer arg1, T value)
Function set(arg1 As Integer, value As T) As T

Parameters:

  • arg1:
  • value:

size Cooper

method size: not nullable Integer
Function size() As Integer

sort (Comparator<Object>) Cooper

method sort(arg1: Comparator<Object>)
void sort(Comparator<Object> arg1)
func sort(_ arg1: Comparator<Object>)
void sort(Comparator<Object> arg1)
Sub sort(arg1 As Comparator<Object>)

Parameters:

  • arg1:

sort by(not nullable Func<not nullable T, not nullable T, not nullable Bool>)  virtual

method sort by(isOrderedBefore: not nullable Func<not nullable T, not nullable T, not nullable Bool>)
void sort by(Func<not nullable T, not nullable T, not nullable Bool>! isOrderedBefore)
func sort(by isOrderedBefore: (T, T) -> Bool)
void sort by(Func3<T, T, Boolean> isOrderedBefore)
Sub sort by(isOrderedBefore As Func (Of T, T, Bool))

Parameters:

  • isOrderedBefore:

sorted  virtual

method sorted by(isOrderedBefore: not nullable Func<not nullable T, not nullable T, not nullable Bool>): not nullable Array<not nullable T>
Array<not nullable T>! sorted by(Func<not nullable T, not nullable T, not nullable Bool>! isOrderedBefore)
func sorted(by isOrderedBefore: (T, T) -> Bool) -> Array<not nullable T>
Swift.Array<T> sorted by(Func3<T, T, Boolean> isOrderedBefore)
Function sorted by(isOrderedBefore As Func (Of T, T, Bool)) As Array<not nullable T>

Parameters:

  • isOrderedBefore:

spliterator Cooper

method spliterator: Spliterator<not nullable T>
Spliterator<not nullable T> spliterator()
func spliterator() -> Spliterator<not nullable T>
Spliterator<T> spliterator()
Function spliterator() As Spliterator<not nullable T>

subList Cooper

method subList(arg1: not nullable Integer; arg2: not nullable Integer): List<not nullable T>
List<not nullable T> subList(Integer! arg1, Integer! arg2)
func subList(_ arg1: Integer, _ arg2: Integer) -> List<not nullable T>
List<T> subList(Integer arg1, Integer arg2)
Function subList(arg1 As Integer, arg2 As Integer) As List<not nullable T>

Parameters:

  • arg1:
  • arg2:

swapAt  virtual

method swapAt(i: not nullable Int; j: not nullable Int)
void swapAt(Int! i, Int! j)
func swapAt(_ i: Int, _ j: Int)
void swapAt(Int i, Int j)
Sub swapAt(i As Int, j As Int)

Parameters:

  • i:
  • j:

toArray Cooper

method toArray: not nullable array of Object
func toArray() -> Object...
Function toArray() As Object()

toArray<T> Cooper

method toArray<T>(arg1: not nullable array of T): not nullable array of T
T[]! toArray<T>(T[]! arg1)
func toArray<T>(_ arg1: T...) -> T...
Function toArray<T>(arg1 As T()) As T()

Parameters:

  • arg1:

toString Cooper

func toString() -> String
Function toString() As String