ImmutableQueue<T>

Overview

Immutable version of a queue: first in, first out.

Location

  • Reference:
    • Elements.dll  .NET, .NET Core 6.0, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
  • Mapped to:


 

constructor Toffee

 

init($New )

Parameters:

  • :

Contains (T): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if this list contains aItem.

 

method Contains(Item: T): Boolean

 

Boolean Contains(T Item)

 

func Contains(_ Item: T) -> Boolean

 

Boolean Contains(T Item)

 

Function Contains(Item As T) As Boolean

Parameters:

  • Item:

Contains (T): Boolean .NET, .NET Core 6.0, .NET Standard 2.0

 

method Contains(Item: T): Boolean

 

Boolean Contains(T Item)

 

func Contains(_ Item: T) -> Boolean

 

Function Contains(Item As T) As Boolean

Parameters:

  • Item:

Count

Returns the nr of items in this Queue.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Integer Count { __get; }

 

ReadOnly Property Count() As Int32

MutableVersion Cooper, Island, Toffee, ToffeeV2

Creates a copy and returns it as mutable.

 

method MutableVersion: Queue<T>

 

Queue<T> MutableVersion()

 

func MutableVersion() -> Queue<T>

 

Queue<T> MutableVersion()

 

Function MutableVersion() As Queue<T>

MutableVersion .NET, .NET Core 6.0, .NET Standard 2.0

 

method MutableVersion: Queue<T>

 

Queue<T> MutableVersion()

 

func MutableVersion() -> Queue<T>

 

Function MutableVersion() As Queue<T>

Peek Cooper, Island, Toffee, ToffeeV2

Gets the next item.

 

method Peek: nullable T

 

T? Peek()

 

func Peek() -> T?

 

T Peek()

 

Function Peek() As T?

Peek .NET, .NET Core 6.0, .NET Standard 2.0

 

method Peek: nullable T

 

T? Peek()

 

func Peek() -> T?

 

Function Peek() As T?

ToArray Cooper, Island, Toffee, ToffeeV2

Saves this queue as array.

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

T[] ToArray()

 

Function ToArray() As T()

ToArray .NET, .NET Core 6.0, .NET Standard 2.0

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

Function ToArray() As T()

UniqueCopy .NET, .NET Core 6.0, .NET Standard 2.0

 

method UniqueCopy: ImmutableQueue<T>

 

ImmutableQueue<T> UniqueCopy()

 

func UniqueCopy() -> ImmutableQueue<T>

 

Function UniqueCopy() As ImmutableQueue<T>

UniqueMutableCopy .NET, .NET Core 6.0, .NET Standard 2.0

 

method UniqueMutableCopy: Queue<T>

 

Queue<T> UniqueMutableCopy()

 

func UniqueMutableCopy() -> Queue<T>

 

Function UniqueMutableCopy() As Queue<T>

 

Count

Returns the nr of items in this Queue.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Integer Count { __get; }

 

ReadOnly Property Count() As Int32

 

constructor Toffee

 

init($New )

Parameters:

  • :

Contains (T): Boolean Cooper, Island, Toffee, ToffeeV2

Returns true if this list contains aItem.

 

method Contains(Item: T): Boolean

 

Boolean Contains(T Item)

 

func Contains(_ Item: T) -> Boolean

 

Boolean Contains(T Item)

 

Function Contains(Item As T) As Boolean

Parameters:

  • Item:

MutableVersion Cooper, Island, Toffee, ToffeeV2

Creates a copy and returns it as mutable.

 

method MutableVersion: Queue<T>

 

Queue<T> MutableVersion()

 

func MutableVersion() -> Queue<T>

 

Queue<T> MutableVersion()

 

Function MutableVersion() As Queue<T>

Peek Cooper, Island, Toffee, ToffeeV2

Gets the next item.

 

method Peek: nullable T

 

T? Peek()

 

func Peek() -> T?

 

T Peek()

 

Function Peek() As T?

ToArray Cooper, Island, Toffee, ToffeeV2

Saves this queue as array.

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

T[] ToArray()

 

Function ToArray() As T()

Contains (T): Boolean .NET, .NET Core 6.0, .NET Standard 2.0

 

method Contains(Item: T): Boolean

 

Boolean Contains(T Item)

 

func Contains(_ Item: T) -> Boolean

 

Function Contains(Item As T) As Boolean

Parameters:

  • Item:

MutableVersion .NET, .NET Core 6.0, .NET Standard 2.0

 

method MutableVersion: Queue<T>

 

Queue<T> MutableVersion()

 

func MutableVersion() -> Queue<T>

 

Function MutableVersion() As Queue<T>

Peek .NET, .NET Core 6.0, .NET Standard 2.0

 

method Peek: nullable T

 

T? Peek()

 

func Peek() -> T?

 

Function Peek() As T?

ToArray .NET, .NET Core 6.0, .NET Standard 2.0

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

Function ToArray() As T()

UniqueCopy .NET, .NET Core 6.0, .NET Standard 2.0

 

method UniqueCopy: ImmutableQueue<T>

 

ImmutableQueue<T> UniqueCopy()

 

func UniqueCopy() -> ImmutableQueue<T>

 

Function UniqueCopy() As ImmutableQueue<T>

UniqueMutableCopy .NET, .NET Core 6.0, .NET Standard 2.0

 

method UniqueMutableCopy: Queue<T>

 

Queue<T> UniqueMutableCopy()

 

func UniqueMutableCopy() -> Queue<T>

 

Function UniqueMutableCopy() As Queue<T>