ImmutableQueue<T>

Overview

Immutable version of a queue: 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.NSArray  Toffee, ToffeeV2

Descendants

Properties


Count

Returns the nr of items in this Queue.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Integer Count { __get; }

Instance Methods


Contains

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:

MutableVersion

Creates a copy and returns it as mutable.

 

method MutableVersion: Queue<T>

 

Queue<T> MutableVersion()

 

func MutableVersion() -> Queue<T>

 

Queue<T> MutableVersion()

Peek

Gets the next item.

 

method Peek: T

 

T Peek()

 

func Peek() -> T

 

T Peek()

ToArray

Saves this queue as array.

 

method ToArray: array of T

 

T[] ToArray()

 

func ToArray() -> T...

 

T[] ToArray()

Descendants