Adds an Object to a PriorityQueue in log(size) time. If one tries to add
more objects than maxSize from initialize a RuntimeException
(ArrayIndexOutOfBound) is thrown.
Namespace: Lucene.Net.UtilAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
[ObsoleteAttribute("use Add(Object) which returns the new top object, saving an additional call to Top().")] public void Put( Object element ) |
Visual Basic |
---|
<ObsoleteAttribute("use Add(Object) which returns the new top object, saving an additional call to Top().")> _ Public Sub Put ( _ element As Object _ ) |
Visual C++ |
---|
[ObsoleteAttribute(L"use Add(Object) which returns the new top object, saving an additional call to Top().")] public: void Put( Object^ element ) |
Parameters
- element
- Type: System..::..Object
[Missing <param name="element"/> documentation for "M:Lucene.Net.Util.PriorityQueue.Put(System.Object)"]