Search
Preparing search index...
The search index is not available
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
fm
icelink
IceServerCollection
Class IceServerCollection
An ICE server collection.
Hierarchy
Collection
<
IceServer
,
IceServerCollection
>
IceServerCollection
Index
Constructors
constructor
Methods
add
add
Many
add
Success
any
array
From
List
contains
create
Collection
first
first
OrDefault
for
Each
get
Count
get
Type
String
get
Value
get
Values
last
last
OrDefault
remove
remove
All
remove
First
remove
Last
remove
Many
remove
Success
replace
set
Value
set
Values
single
single
OrDefault
value
At
value
AtOr
Default
where
Constructors
constructor
new
Ice
Server
Collection
(
)
:
IceServerCollection
Returns
IceServerCollection
Methods
add
add
(
value
:
IceServer
)
:
boolean
Adds a value.
Parameters
value:
IceServer
The value.
Returns
boolean
add
Many
add
Many
(
values
:
IceServer
[]
)
:
boolean
Adds some values.
Parameters
values:
IceServer
[]
The values.
Returns
boolean
Protected
add
Success
add
Success
(
value
:
IceServer
)
:
void
Invoked when an element is added to the collection.
Parameters
value:
IceServer
The value.
Returns
void
any
any
(
predicate
:
IFunction1
<
IceServer
,
boolean
>
)
:
boolean
any
(
)
:
boolean
Determined whether the collection contains at least one value that matches the specified predicate.
Parameters
predicate:
IFunction1
<
IceServer
,
boolean
>
The predicate.
Returns
boolean
Determined whether the collection contains at least one value.
Returns
boolean
Protected
array
From
List
array
From
List
(
list
:
Array
<
IceServer
>
)
:
IceServer
[]
Creates an array from a list.
Parameters
list:
Array
<
IceServer
>
The list.
Returns
IceServer
[]
contains
contains
(
value
:
IceServer
)
:
boolean
Determines whether the collection contains a value.
Parameters
value:
IceServer
The value.
Returns
boolean
Protected
create
Collection
create
Collection
(
)
:
IceServerCollection
Creates a collection.
Returns
IceServerCollection
first
first
(
predicate
:
IFunction1
<
IceServer
,
boolean
>
)
:
IceServer
first
(
)
:
IceServer
Gets the first value that matches the specified predicate. Throws an exception if there are no such values in the collection.
Parameters
predicate:
IFunction1
<
IceServer
,
boolean
>
The predicate.
Returns
IceServer
Gets the first value. Throws an exception if there are no values in the collection.
Returns
IceServer
first
OrDefault
first
OrDefault
(
)
:
IceServer
first
OrDefault
(
predicate
:
IFunction1
<
IceServer
,
boolean
>
)
:
IceServer
Gets the first value. Returns a default value if there are no values in the collection.
Returns
IceServer
Gets the first value that matches the specified predicate. Returns a default value if there are no such values in the collection.
Parameters
predicate:
IFunction1
<
IceServer
,
boolean
>
The predicate.
Returns
IceServer
for
Each
for
Each
(
callback
:
IAction2
<
IceServer
,
number
>
)
:
void
Executes a callback function once per value.
Parameters
callback:
IAction2
<
IceServer
,
number
>
The callback to execute.
Returns
void
get
Count
get
Count
(
)
:
number
Gets the count.
Returns
number
get
Type
String
get
Type
String
(
)
:
string
Returns
string
get
Value
get
Value
(
)
:
IceServer
Gets the value.
Returns
IceServer
get
Values
get
Values
(
)
:
IceServer
[]
Gets the values.
Returns
IceServer
[]
last
last
(
predicate
:
IFunction1
<
IceServer
,
boolean
>
)
:
IceServer
last
(
)
:
IceServer
Gets the last value that matches the specified predicate. Throws an exception if there are no such values in the collection.
Parameters
predicate:
IFunction1
<
IceServer
,
boolean
>
The predicate.
Returns
IceServer
Gets the last value. Throws an exception if there are no values in the collection.
Returns
IceServer
last
OrDefault
last
OrDefault
(
predicate
:
IFunction1
<
IceServer
,
boolean
>
)
:
IceServer
last
OrDefault
(
)
:
IceServer
Gets the last value that matches the specified predicate. Returns a default value if there are no such values in the collection.
Parameters
predicate:
IFunction1
<
IceServer
,
boolean
>
The predicate.
Returns
IceServer
Gets the last value. Returns a default value if there are no values in the collection.
Returns
IceServer
remove
remove
(
value
:
IceServer
)
:
boolean
Removes a value.
Parameters
value:
IceServer
The value.
Returns
boolean
remove
All
remove
All
(
)
:
void
Removes all values.
Returns
void
remove
First
remove
First
(
condition
:
IFunction1
<
IceServer
,
boolean
>
)
:
IceServer
remove
First
(
)
:
IceServer
Removes the first value that matches a given condition.
Parameters
condition:
IFunction1
<
IceServer
,
boolean
>
Returns
IceServer
Removes the first value.
Returns
IceServer
remove
Last
remove
Last
(
)
:
IceServer
remove
Last
(
condition
:
IFunction1
<
IceServer
,
boolean
>
)
:
IceServer
Removes the last value.
Returns
IceServer
Removes the last value that matches a given condition.
Parameters
condition:
IFunction1
<
IceServer
,
boolean
>
Returns
IceServer
remove
Many
remove
Many
(
values
:
IceServer
[]
)
:
boolean
Removes some values.
Parameters
values:
IceServer
[]
The values.
Returns
boolean
Protected
remove
Success
remove
Success
(
value
:
IceServer
)
:
void
Invoked when an element is removed from the collection.
Parameters
value:
IceServer
The value.
Returns
void
replace
replace
(
values
:
IceServer
[]
)
:
void
Replaces the collection with a new set of values.
Parameters
values:
IceServer
[]
The values.
Returns
void
set
Value
set
Value
(
value
:
IceServer
)
:
void
Sets the value.
Parameters
value:
IceServer
Returns
void
set
Values
set
Values
(
value
:
IceServer
[]
)
:
void
Sets the values.
Parameters
value:
IceServer
[]
Returns
void
single
single
(
predicate
:
IFunction1
<
IceServer
,
boolean
>
)
:
IceServer
single
(
)
:
IceServer
Gets the only value that matches the specified predicate. Throws an exception if there are no values or more than one value in the collection.
Parameters
predicate:
IFunction1
<
IceServer
,
boolean
>
Returns
IceServer
Gets the only value. Throws an exception if there are no values or more than one value in the collection.
Returns
IceServer
single
OrDefault
single
OrDefault
(
)
:
IceServer
single
OrDefault
(
predicate
:
IFunction1
<
IceServer
,
boolean
>
)
:
IceServer
Gets the only value. Returns a default value if there are no values or more than one value in the collection.
Returns
IceServer
Gets the only value that matches the specified predicate. Returns a default value if there are no values or more than one value in the collection.
Parameters
predicate:
IFunction1
<
IceServer
,
boolean
>
Returns
IceServer
value
At
value
At
(
index
:
number
)
:
IceServer
Gets the value at the specified index. Throws an exception if a value does not exist at that index.
Parameters
index:
number
The index.
Returns
IceServer
value
AtOr
Default
value
AtOr
Default
(
index
:
number
)
:
IceServer
Gets the value at the specified index. Returns a default value if a value does not exist at that index.
Parameters
index:
number
The index.
Returns
IceServer
where
where
(
predicate
:
IFunction2
<
IceServer
,
number
,
boolean
>
)
:
IceServerCollection
Creates a new collection with values that match the specified predicate.
Parameters
predicate:
IFunction2
<
IceServer
,
number
,
boolean
>
The predicate.
Returns
IceServerCollection
Ice
Server
Collection
constructor
add
add
Many
add
Success
any
array
From
List
contains
create
Collection
first
first
OrDefault
for
Each
get
Count
get
Type
String
get
Value
get
Values
last
last
OrDefault
remove
remove
All
remove
First
remove
Last
remove
Many
remove
Success
replace
set
Value
set
Values
single
single
OrDefault
value
At
value
AtOr
Default
where