Queue<T>

Overview

Queue class that does 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:
  • Ancestry: ImmutableQueue<T> | Queue<T>


 

constructor .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2

Create a new instance.

 

constructor

 

Queue<T>()

 

init()

 

Queue<T>()

 

Sub New()

constructor $New() Toffee

 

init($New )

Parameters:

  • :

Clear Cooper, Island, Toffee, ToffeeV2

Remove all items.

 

method Clear

 

void Clear()

 

func Clear()

 

void Clear()

 

Sub Clear()

Clear .NET, .NET Core 6.0, .NET Standard 2.0

 

method Clear

 

void Clear()

 

func Clear()

 

Sub Clear()

Contains (T): Boolean    (declared in ImmutableQueue<T>) 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    (declared in ImmutableQueue<T>) .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    (declared in ImmutableQueue<T>)

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

Dequeue Cooper, Island, Toffee, ToffeeV2

Grabs the next item and removes it from the queue. Fails if no items are available.

 

method Dequeue: T

 

T Dequeue()

 

func Dequeue() -> T

 

T Dequeue()

 

Function Dequeue() As T

Dequeue .NET, .NET Core 6.0, .NET Standard 2.0

 

method Dequeue: T

 

T Dequeue()

 

func Dequeue() -> T

 

Function Dequeue() As T

Enqueue (T) Cooper, Island, Toffee, ToffeeV2

Add a new item to the queue

 

method Enqueue(Item: T)

 

void Enqueue(T Item)

 

func Enqueue(_ Item: T)

 

void Enqueue(T Item)

 

Sub Enqueue(Item As T)

Parameters:

  • Item:

Enqueue (T) .NET, .NET Core 6.0, .NET Standard 2.0

 

method Enqueue(Item: T)

 

void Enqueue(T Item)

 

func Enqueue(_ Item: T)

 

Sub Enqueue(Item As T)

Parameters:

  • Item:

MutableVersion    (declared in ImmutableQueue<T>) 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    (declared in ImmutableQueue<T>) .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    (declared in ImmutableQueue<T>) Cooper, Island, Toffee, ToffeeV2

Gets the next item.

 

method Peek: nullable T

 

T? Peek()

 

func Peek() -> T?

 

T Peek()

 

Function Peek() As T?

Peek    (declared in ImmutableQueue<T>) .NET, .NET Core 6.0, .NET Standard 2.0

 

method Peek: nullable T

 

T? Peek()

 

func Peek() -> T?

 

Function Peek() As T?

ToArray    (declared in ImmutableQueue<T>) 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    (declared in ImmutableQueue<T>) .NET, .NET Core 6.0, .NET Standard 2.0

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

Function ToArray() As T()

UniqueCopy    (declared in ImmutableQueue<T>) .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    (declared in ImmutableQueue<T>) .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    (declared in ImmutableQueue<T>)

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 .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2

Create a new instance.

 

constructor

 

Queue<T>()

 

init()

 

Queue<T>()

 

Sub New()

constructor $New() Toffee

 

init($New )

Parameters:

  • :

Clear Cooper, Island, Toffee, ToffeeV2

Remove all items.

 

method Clear

 

void Clear()

 

func Clear()

 

void Clear()

 

Sub Clear()

Contains (T): Boolean    (declared in ImmutableQueue<T>) 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:

Dequeue Cooper, Island, Toffee, ToffeeV2

Grabs the next item and removes it from the queue. Fails if no items are available.

 

method Dequeue: T

 

T Dequeue()

 

func Dequeue() -> T

 

T Dequeue()

 

Function Dequeue() As T

Enqueue (T) Cooper, Island, Toffee, ToffeeV2

Add a new item to the queue

 

method Enqueue(Item: T)

 

void Enqueue(T Item)

 

func Enqueue(_ Item: T)

 

void Enqueue(T Item)

 

Sub Enqueue(Item As T)

Parameters:

  • Item:

MutableVersion    (declared in ImmutableQueue<T>) 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    (declared in ImmutableQueue<T>) Cooper, Island, Toffee, ToffeeV2

Gets the next item.

 

method Peek: nullable T

 

T? Peek()

 

func Peek() -> T?

 

T Peek()

 

Function Peek() As T?

ToArray    (declared in ImmutableQueue<T>) 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()

Clear .NET, .NET Core 6.0, .NET Standard 2.0

 

method Clear

 

void Clear()

 

func Clear()

 

Sub Clear()

Contains (T): Boolean    (declared in ImmutableQueue<T>) .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:

Dequeue .NET, .NET Core 6.0, .NET Standard 2.0

 

method Dequeue: T

 

T Dequeue()

 

func Dequeue() -> T

 

Function Dequeue() As T

Enqueue (T) .NET, .NET Core 6.0, .NET Standard 2.0

 

method Enqueue(Item: T)

 

void Enqueue(T Item)

 

func Enqueue(_ Item: T)

 

Sub Enqueue(Item As T)

Parameters:

  • Item:

MutableVersion    (declared in ImmutableQueue<T>) .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    (declared in ImmutableQueue<T>) .NET, .NET Core 6.0, .NET Standard 2.0

 

method Peek: nullable T

 

T? Peek()

 

func Peek() -> T?

 

Function Peek() As T?

ToArray    (declared in ImmutableQueue<T>) .NET, .NET Core 6.0, .NET Standard 2.0

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

Function ToArray() As T()

UniqueCopy    (declared in ImmutableQueue<T>) .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    (declared in ImmutableQueue<T>) .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>