Table of Contents

Class LavalinkQueue<T>

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

Represents a queue of objects.

public class LavalinkQueue<T> : IEnumerable<T>, IEnumerable

Type Parameters

T
Inheritance
LavalinkQueue<T>
Implements
Inherited Members

Constructors

LavalinkQueue()

Creates a new instance of LavalinkQueue<T>.

Properties

Count

Gets the number of elements contained in the LavalinkQueue<T>.

Methods

Clear()

Removes all elements from the LavalinkQueue<T>.

Enqueue(T)

Adds an object to the end of the LavalinkQueue<T>.

GetEnumerator()

Returns an enumerator that iterates through the collection.

InsertAt(int, T)

Inserts an object at the specified index in the LavalinkQueue<T>.

InsertRange(int, IEnumerable<T>)

Adds a range of objects at the specified index in the LavalinkQueue<T>.

Remove(T)

Removes the first occurrence of a specific object from the LavalinkQueue<T>.

RemoveAt(int)

Removes the element at the specified index of the LavalinkQueue<T>.

RemoveRange(int, int)

Removes a range of elements from the LavalinkQueue<T>.

Reverse()

Reverses the order of the elements in the entire LavalinkQueue<T>.

Shuffle()

Shuffles the elements in the LavalinkQueue<T> randomly.

TryDequeue(out T)

Attempts to remove and return the object at the beginning of the LavalinkQueue<T>.

TryPeek(out T?)

Attempts to return the object at the beginning of the LavalinkQueue<T> without removing it.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.