Adds an Object to a PriorityQueue in log(size) time. If one tries to add more objects than maxSize from initialize an {@link ArrayIndexOutOfBoundsException} is thrown.

Namespace: Lucene.Net.Util
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public Object Add(
	Object element
)
Visual Basic
Public Function Add ( _
	element As Object _
) As Object
Visual C++
public:
Object^ Add(
	Object^ element
)

Parameters

element
Type: System..::..Object

[Missing <param name="element"/> documentation for "M:Lucene.Net.Util.PriorityQueue.Add(System.Object)"]

Return Value

the new 'top' element in the queue.

See Also