Set<T>

Overview

Location

  • Reference:
    • Swift.dll  .NET, .NET Standard 2.0
    • swift.jar  Cooper
    • Swift.fx  Island
    • libSwift.fx  Toffee
  • Namespace: Swift
  • Ancestry:

 

constructor

 

constructor

 

Set<T>()

 

init()

 

Set<T>()

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

 

init(_ theSet: NSMutableSet<T>)

Parameters:

  • theSet:

constructor (Set<T>) Cooper

 

constructor(value: Set<T>)

 

Set<T>(Set<T> value)

 

init(_ value: Set<T>)

 

Set<T>(Set<T> value)

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(withArrayLiteral elements: T...)

 

Set<T> withArrayLiteral(T![]... elements)

Parameters:

  • elements:

constructor withMinimumCapacity(not nullable Int)

 

constructor withMinimumCapacity(minimumCapacity: not nullable Int)

 

Set<T> withMinimumCapacity(Int! minimumCapacity)

 

init(withMinimumCapacity minimumCapacity: Int)

 

Set<T> withMinimumCapacity(Int! minimumCapacity)

Parameters:

  • minimumCapacity:

clone Cooper

 

method clone: Object

 

Object clone()

 

func clone() -> Object

 

Object clone()

contains  virtual

 

method contains(member: not nullable T): not nullable Bool

 

Bool! contains(T! member)

 

func contains(_ member: T) -> Bool

 

Bool! contains(T! member)

Parameters:

  • member:

count  virtual

 

property count: not nullable Int read;

 

Int! count { get; }

 

var count: Int { get{} }

 

Int! count { __get; }

description  override

 

method description: not nullable String

 

String! description()

 

func description() -> String

 

String! description()

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>

 

Set<not nullable T>! exclusiveOr(Set<not nullable T>! anotherSet)

Parameters:

  • anotherSet:

first  virtual

 

property first: nullable GenericNullable<T> read;

 

GenericNullable<T>? first { get; }

 

// .NET, .NET Standard 2.0, Island
var first: GenericNullable<T>? { get{} }
// Toffee
var first: T? { get{} }

 

T? first { __get; }

GetEnumerator  virtual .NET, .NET Standard 2.0, Island

 

// .NET, .NET Standard 2.0
method GetEnumerator: IEnumerator<not nullable T>
// Island
method GetEnumerator: IEnumerator<not nullable T>

 

// .NET, .NET Standard 2.0
IEnumerator<T!> GetEnumerator()
// Island
IEnumerator<not nullable T> GetEnumerator()

 

// .NET, .NET Standard 2.0
func GetEnumerator() -> IEnumerator<T>
// Island
func GetEnumerator() -> 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<not nullable T>! GetSequence()

insert  virtual

 

method insert(member: not nullable T)

 

void insert(T! member)

 

func insert(_ member: T)

 

void insert(T! member)

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>

 

Set<not nullable T>! intersection(Set<not nullable T>! anotherSet)

Parameters:

  • anotherSet:

isEmpty  virtual

 

property isEmpty: not nullable Bool read;

 

Bool! isEmpty { get; }

 

var isEmpty: Bool { get{} }

 

Bool! isEmpty { __get; }

iterator Cooper

 

method iterator: Iterator<not nullable T>

 

Iterator<T!> iterator()

 

func iterator() -> Iterator<T>

 

Iterator<T!> iterator()

remove  virtual

 

method remove(member: not nullable T): nullable GenericNullable<T>

 

GenericNullable<T>? remove(T! member)

 

func remove(_ member: T) -> T?

 

T? remove(T! member)

Parameters:

  • member:

removeAll  virtual

 

method removeAll keepCapacity(keepCapacity: not nullable Bool)

 

void removeAll keepCapacity(Bool! keepCapacity)

 

func removeAll(keepCapacity: Bool)

 

void removeAll keepCapacity(Bool! keepCapacity)

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>

 

Set<not nullable T>! subtracting(Set<not nullable T>! anotherSet)

Parameters:

  • anotherSet:

ToString  override virtual .NET, .NET Standard 2.0, Cooper, Island

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

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>

 

Set<not nullable T>! union(Set<not nullable T>! anotherSet)

Parameters:

  • anotherSet:

 

count  virtual

 

property count: not nullable Int read;

 

Int! count { get; }

 

var count: Int { get{} }

 

Int! count { __get; }

first  virtual

 

property first: nullable GenericNullable<T> read;

 

GenericNullable<T>? first { get; }

 

// .NET, .NET Standard 2.0, Island
var first: GenericNullable<T>? { get{} }
// Toffee
var first: T? { get{} }

 

T? first { __get; }

isEmpty  virtual

 

property isEmpty: not nullable Bool read;

 

Bool! isEmpty { get; }

 

var isEmpty: Bool { get{} }

 

Bool! isEmpty { __get; }

 

constructor

 

constructor

 

Set<T>()

 

init()

 

Set<T>()

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

 

init(_ theSet: NSMutableSet<T>)

Parameters:

  • theSet:

constructor (Set<T>) Cooper

 

constructor(value: Set<T>)

 

Set<T>(Set<T> value)

 

init(_ value: Set<T>)

 

Set<T>(Set<T> value)

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(withArrayLiteral elements: T...)

 

Set<T> withArrayLiteral(T![]... elements)

Parameters:

  • elements:

constructor withMinimumCapacity(not nullable Int)

 

constructor withMinimumCapacity(minimumCapacity: not nullable Int)

 

Set<T> withMinimumCapacity(Int! minimumCapacity)

 

init(withMinimumCapacity minimumCapacity: Int)

 

Set<T> withMinimumCapacity(Int! minimumCapacity)

Parameters:

  • minimumCapacity:

clone Cooper

 

method clone: Object

 

Object clone()

 

func clone() -> Object

 

Object clone()

contains  virtual

 

method contains(member: not nullable T): not nullable Bool

 

Bool! contains(T! member)

 

func contains(_ member: T) -> Bool

 

Bool! contains(T! member)

Parameters:

  • member:

description  override

 

method description: not nullable String

 

String! description()

 

func description() -> String

 

String! description()

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>

 

Set<not nullable T>! exclusiveOr(Set<not nullable T>! anotherSet)

Parameters:

  • anotherSet:

GetEnumerator  virtual .NET, .NET Standard 2.0, Island

 

// .NET, .NET Standard 2.0
method GetEnumerator: IEnumerator<not nullable T>
// Island
method GetEnumerator: IEnumerator<not nullable T>

 

// .NET, .NET Standard 2.0
IEnumerator<T!> GetEnumerator()
// Island
IEnumerator<not nullable T> GetEnumerator()

 

// .NET, .NET Standard 2.0
func GetEnumerator() -> IEnumerator<T>
// Island
func GetEnumerator() -> 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<not nullable T>! GetSequence()

insert  virtual

 

method insert(member: not nullable T)

 

void insert(T! member)

 

func insert(_ member: T)

 

void insert(T! member)

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>

 

Set<not nullable T>! intersection(Set<not nullable T>! anotherSet)

Parameters:

  • anotherSet:

iterator Cooper

 

method iterator: Iterator<not nullable T>

 

Iterator<T!> iterator()

 

func iterator() -> Iterator<T>

 

Iterator<T!> iterator()

remove  virtual

 

method remove(member: not nullable T): nullable GenericNullable<T>

 

GenericNullable<T>? remove(T! member)

 

func remove(_ member: T) -> T?

 

T? remove(T! member)

Parameters:

  • member:

removeAll  virtual

 

method removeAll keepCapacity(keepCapacity: not nullable Bool)

 

void removeAll keepCapacity(Bool! keepCapacity)

 

func removeAll(keepCapacity: Bool)

 

void removeAll keepCapacity(Bool! keepCapacity)

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>

 

Set<not nullable T>! subtracting(Set<not nullable T>! anotherSet)

Parameters:

  • anotherSet:

ToString  override virtual .NET, .NET Standard 2.0, Cooper, Island

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

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>

 

Set<not nullable T>! union(Set<not nullable T>! anotherSet)

Parameters:

  • anotherSet: