Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

PriorityQueue Constructor

Creates a PriorityQueue with the specified initial capacity that orders its elements according to the specified comparator.

[Visual Basic]
Public Overloads Sub New( _
   ByVal initialCapacity As Integer, _
   ByVal comparator As IComparer _
)
[C#]
PriorityQueue(
   int initialCapacity,
   IComparer comparator
);

Parameters

initialCapacity
the initial capacity for this priority queue.
comparator
the comparator used to order this priority queue. If then the order depends on the elements' natural ordering.

Exceptions

Exception Type Condition
ArgumentException if initialCapacity is less than 1.

See Also

PriorityQueue Class | Spring.Collections Namespace | PriorityQueue Constructor Overload List