Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

PriorityQueue Members

PriorityQueue overview

Public Instance Constructors

PriorityQueue Overloaded. Initializes a new instance of the PriorityQueue class.

Public Instance Properties

Capacity Gets the Capacity of this queue. Will equal Count
Count Returns the queue count.
IsEmpty Returns if there are no elements in the IQueue, otherwise.
IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe).
SyncRoot Gets an object that can be used to synchronize access to the ICollection.

Public Instance Methods

Add Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions, returning upon success and throwing an InvalidOperationException if no space is currently available.
AddAll (inherited from AbstractQueue) Adds all of the elements in the supplied collection to this queue.
Clear Removes all elements from the priority queue. The queue will be empty after this call returns.
Comparator Returns the comparator used to order this collection, or if this collection is sorted according to its elements natural ordering (using IComparable).
Contains Queries the queue to see if it contains the specified
CopyToOverloaded. Copies the elements of the ICollection to an Array, starting at a particular Array index.
Element (inherited from AbstractQueue) Retrieves, but does not remove, the head of this queue.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetEnumerator Returns an IEnumerator over the elements in this queue. The enumeratoar does not return the elements in any particular order.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetObjectData Save the state of the instance to a stream (that is, serialize it).
GetType (inherited from Object)Gets the Type of the current instance.
Offer Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions.
Peek Retrieves, but does not remove, the head of this queue, or returns if this queue is empty.
Poll Retrieves and removes the head of this queue, or returns if this queue is empty.
RemoveOverloaded. Removes a single instance of the specified element from this queue, if it is present.
Remove (inherited from AbstractQueue)Overloaded. Retrieves and removes the head of this queue.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Constructors

PriorityQueue Overloaded. Initializes a new instance of the PriorityQueue class.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

PriorityQueue Class | Spring.Collections Namespace