IQueue IQueue Interface

Definition

A collection designed for holding elements prior to processing.

[Android.Runtime.Register("java/util/Queue", "", "Java.Util.IQueueInvoker", ApiSince=1)]
[Java.Interop.JavaTypeParameters(new System.String[] { "E" })]
public interface IQueue : IDisposable, Java.Util.ICollection
type IQueue = interface
    interface ICollection
    interface IIterable
    interface IJavaObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Methods

Add(Object) Add(Object)
AddAll(ICollection) AddAll(ICollection) Inherited from ICollection
Clear() Clear()

Removes all elements from this Collection, leaving it empty (optional).

(Inherited from ICollection)
Contains(Object) Contains(Object)

Tests whether this Collection contains the specified object.

(Inherited from ICollection)
ContainsAll(ICollection) ContainsAll(ICollection) Inherited from ICollection
Element() Element()

Retrieves, but does not remove, the head of this queue.

Equals(Object) Equals(Object)

Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.

(Inherited from ICollection)
GetHashCode() GetHashCode()

Returns an integer hash code for the receiver.

(Inherited from ICollection)
Iterator() Iterator()

Returns an instance of IIterator that may be used to access the objects contained by this Collection.

(Inherited from ICollection)
Offer(Object) Offer(Object)
Peek() Peek()

Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.

Poll() Poll()

Retrieves and removes the head of this queue, or returns null if this queue is empty.

Remove() Remove()

Retrieves and removes the head of this queue.

Remove(Object) Remove(Object)

Removes one instance of the specified object from this Collection if one is contained (optional).

(Inherited from ICollection)
RemoveAll(ICollection) RemoveAll(ICollection) Inherited from ICollection
RetainAll(ICollection) RetainAll(ICollection) Inherited from ICollection
Size() Size()

Returns a count of how many objects this Collection contains.

(Inherited from ICollection)
ToArray() ToArray()

Returns a new array containing all elements contained in this Collection.

(Inherited from ICollection)
ToArray(Object[]) ToArray(Object[]) Inherited from ICollection

Properties

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsEmpty IsEmpty

Returns if this Collection contains no elements.

(Inherited from ICollection)

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
ToEnumerable(IIterable) ToEnumerable(IIterable)
ToEnumerable<T>(IIterable) ToEnumerable<T>(IIterable)

Applies to