Adds element to the PriorityQueue in log(size) time if either the PriorityQueue is not full, or not lessThan(element, top()).

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

Syntax

C#
[ObsoleteAttribute("use InsertWithOverflow(Object) instead, which encourages objects reuse.")]
public virtual bool Insert(
	Object element
)
Visual Basic
<ObsoleteAttribute("use InsertWithOverflow(Object) instead, which encourages objects reuse.")> _
Public Overridable Function Insert ( _
	element As Object _
) As Boolean
Visual C++
[ObsoleteAttribute(L"use InsertWithOverflow(Object) instead, which encourages objects reuse.")]
public:
virtual bool Insert(
	Object^ element
)

Parameters

element
Type: System..::..Object

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

Return Value

true if element is added, false otherwise.

See Also