Set<T>

constructor


constructor (not nullable NSMutableSet<not nullable T>) Toffee

init(_ theSet: NSMutableSet<not nullable T>)

Parameters:

  • theSet:

constructor (Set<T>) Cooper

constructor(value: Set<T>)

Parameters:

  • value:

constructor withArrayLiteral(array of not nullable T)

constructor withArrayLiteral(params elements: array of not nullable T)
Set<T> withArrayLiteral(params T![] elements)
init(arrayLiteral elements: T...)
Set<T> withArrayLiteral(T[]... elements)
Sub New withArrayLiteral(ParamArray elements As T())

Parameters:

  • elements:

constructor withMinimumCapacity(not nullable Int)

constructor withMinimumCapacity(minimumCapacity: not nullable Int)
Set<T> withMinimumCapacity(Int! minimumCapacity)
init(minimumCapacity: Int)
Set<T> withMinimumCapacity(Int minimumCapacity)
Sub New withMinimumCapacity(minimumCapacity As Int)

Parameters:

  • minimumCapacity:

clone Cooper

Function clone() As Object

contains  virtual

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

Parameters:

  • member:

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

exclusiveOr  virtual

method exclusiveOr(anotherSet: not nullable Set<not nullable T>): not nullable Set<not nullable T>
Set<not nullable T>! exclusiveOr(Set<not nullable T>! anotherSet)
func exclusiveOr(_ anotherSet: Set<not nullable T>) -> Set<not nullable T>
Swift.Set<T> exclusiveOr(Swift.Set<T> anotherSet)
Function exclusiveOr(anotherSet As Set<not nullable T>) As Set<not nullable T>

Parameters:

  • anotherSet:

first  virtual

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

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>

insert  virtual

method insert(member: not nullable T)

Parameters:

  • member:

intersection  virtual

method intersection(anotherSet: not nullable Set<not nullable T>): not nullable Set<not nullable T>
Set<not nullable T>! intersection(Set<not nullable T>! anotherSet)
func intersection(_ anotherSet: Set<not nullable T>) -> Set<not nullable T>
Swift.Set<T> intersection(Swift.Set<T> anotherSet)
Function intersection(anotherSet As Set<not nullable T>) As Set<not nullable T>

Parameters:

  • anotherSet:

isEmpty  virtual

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

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>

remove  virtual

method remove(member: not nullable T): nullable T
func remove(_ member: T) -> T?
Function remove(member As T) As T?

Parameters:

  • member:

removeAll  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:

subtracting  virtual

method subtracting(anotherSet: not nullable Set<not nullable T>): not nullable Set<not nullable T>
Set<not nullable T>! subtracting(Set<not nullable T>! anotherSet)
func subtracting(_ anotherSet: Set<not nullable T>) -> Set<not nullable T>
Swift.Set<T> subtracting(Swift.Set<T> anotherSet)
Function subtracting(anotherSet As Set<not nullable T>) As Set<not nullable T>

Parameters:

  • anotherSet:

toString Cooper

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

union  virtual

method union(anotherSet: not nullable Set<not nullable T>): not nullable Set<not nullable T>
Set<not nullable T>! union(Set<not nullable T>! anotherSet)
func union(_ anotherSet: Set<not nullable T>) -> Set<not nullable T>
Swift.Set<T> union(Swift.Set<T> anotherSet)
Function union(anotherSet As Set<not nullable T>) As Set<not nullable T>

Parameters:

  • anotherSet:

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

constructor


constructor (not nullable NSMutableSet<not nullable T>) Toffee

init(_ theSet: NSMutableSet<not nullable T>)

Parameters:

  • theSet:

constructor (Set<T>) Cooper

constructor(value: Set<T>)

Parameters:

  • value:

constructor withArrayLiteral(array of not nullable T)

constructor withArrayLiteral(params elements: array of not nullable T)
Set<T> withArrayLiteral(params T![] elements)
init(arrayLiteral elements: T...)
Set<T> withArrayLiteral(T[]... elements)
Sub New withArrayLiteral(ParamArray elements As T())

Parameters:

  • elements:

constructor withMinimumCapacity(not nullable Int)

constructor withMinimumCapacity(minimumCapacity: not nullable Int)
Set<T> withMinimumCapacity(Int! minimumCapacity)
init(minimumCapacity: Int)
Set<T> withMinimumCapacity(Int minimumCapacity)
Sub New withMinimumCapacity(minimumCapacity As Int)

Parameters:

  • minimumCapacity:

clone Cooper

Function clone() As Object

contains  virtual

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

Parameters:

  • member:

description  override

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

exclusiveOr  virtual

method exclusiveOr(anotherSet: not nullable Set<not nullable T>): not nullable Set<not nullable T>
Set<not nullable T>! exclusiveOr(Set<not nullable T>! anotherSet)
func exclusiveOr(_ anotherSet: Set<not nullable T>) -> Set<not nullable T>
Swift.Set<T> exclusiveOr(Swift.Set<T> anotherSet)
Function exclusiveOr(anotherSet As Set<not nullable T>) As Set<not nullable T>

Parameters:

  • anotherSet:

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>

insert  virtual

method insert(member: not nullable T)

Parameters:

  • member:

intersection  virtual

method intersection(anotherSet: not nullable Set<not nullable T>): not nullable Set<not nullable T>
Set<not nullable T>! intersection(Set<not nullable T>! anotherSet)
func intersection(_ anotherSet: Set<not nullable T>) -> Set<not nullable T>
Swift.Set<T> intersection(Swift.Set<T> anotherSet)
Function intersection(anotherSet As Set<not nullable T>) As Set<not nullable T>

Parameters:

  • anotherSet:

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>

remove  virtual

method remove(member: not nullable T): nullable T
func remove(_ member: T) -> T?
Function remove(member As T) As T?

Parameters:

  • member:

removeAll  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:

subtracting  virtual

method subtracting(anotherSet: not nullable Set<not nullable T>): not nullable Set<not nullable T>
Set<not nullable T>! subtracting(Set<not nullable T>! anotherSet)
func subtracting(_ anotherSet: Set<not nullable T>) -> Set<not nullable T>
Swift.Set<T> subtracting(Swift.Set<T> anotherSet)
Function subtracting(anotherSet As Set<not nullable T>) As Set<not nullable T>

Parameters:

  • anotherSet:

toString Cooper

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

union  virtual

method union(anotherSet: not nullable Set<not nullable T>): not nullable Set<not nullable T>
Set<not nullable T>! union(Set<not nullable T>! anotherSet)
func union(_ anotherSet: Set<not nullable T>) -> Set<not nullable T>
Swift.Set<T> union(Swift.Set<T> anotherSet)
Function union(anotherSet As Set<not nullable T>) As Set<not nullable T>

Parameters:

  • anotherSet: