Queue<T>

Overview

Queue class that does first in, first out.

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Mapped to:
    • System.Collections.Generic.Queue  .NET, .NET Standard 2.0
    • java.util.LinkedList  Cooper
    • RemObjects.Elements.System.Queue  Island
    • Foundation.NSMutableArray  Toffee, ToffeeV2
  • Ancestry: ImmutableQueue<T> | Queue<T>

 

constructor

Create a new instance.

 

constructor

 

Queue<T>()

 

init()

 

Queue<T>()

Clear

Remove all items.

 

method Clear

 

void Clear()

 

func Clear()

 

void Clear()

Contains    (declared in ImmutableQueue<T>)

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)

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; }

Dequeue

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()

Enqueue

Add a new item to the queue

 

method Enqueue(Item: T)

 

void Enqueue(T Item)

 

func Enqueue(_ Item: T)

 

void Enqueue(T Item)

Parameters:

  • Item:

MutableVersion    (declared in ImmutableQueue<T>)

Creates a copy and returns it as mutable.

 

method MutableVersion: Queue<T>

 

Queue<T> MutableVersion()

 

func MutableVersion() -> Queue<T>

 

Queue<T> MutableVersion()

Peek    (declared in ImmutableQueue<T>)

Gets the next item.

 

method Peek: T

 

T Peek()

 

func Peek() -> T

 

T Peek()

ToArray    (declared in ImmutableQueue<T>)

Saves this queue as array.

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

T[] ToArray()

 

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; }

 

constructor

Create a new instance.

 

constructor

 

Queue<T>()

 

init()

 

Queue<T>()

Clear

Remove all items.

 

method Clear

 

void Clear()

 

func Clear()

 

void Clear()

Contains    (declared in ImmutableQueue<T>)

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)

Parameters:

  • Item:

Dequeue

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()

Enqueue

Add a new item to the queue

 

method Enqueue(Item: T)

 

void Enqueue(T Item)

 

func Enqueue(_ Item: T)

 

void Enqueue(T Item)

Parameters:

  • Item:

MutableVersion    (declared in ImmutableQueue<T>)

Creates a copy and returns it as mutable.

 

method MutableVersion: Queue<T>

 

Queue<T> MutableVersion()

 

func MutableVersion() -> Queue<T>

 

Queue<T> MutableVersion()

Peek    (declared in ImmutableQueue<T>)

Gets the next item.

 

method Peek: T

 

T Peek()

 

func Peek() -> T

 

T Peek()

ToArray    (declared in ImmutableQueue<T>)

Saves this queue as array.

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

T[] ToArray()