blob: a75e61bbe26cc66da209036e35e104250c05fdeb [file] [log] [blame]
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class TreeSet&lt;T&gt;
| Apache Lucene.NET 4.8.0 Documentation </title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class TreeSet&lt;T&gt;
| Apache Lucene.NET 4.8.0 Documentation ">
<meta name="generator" content="docfx 2.47.0.0">
<link rel="shortcut icon" href="../../logo/favicon.ico">
<link rel="stylesheet" href="../../styles/docfx.vendor.css">
<link rel="stylesheet" href="../../styles/docfx.css">
<link rel="stylesheet" href="../../styles/main.css">
<meta property="docfx:navrel" content="../../toc.html">
<meta property="docfx:tocrel" content="../toc.html">
<meta property="docfx:rel" content="../../">
</head>
<body data-spy="scroll" data-target="#affix" data-offset="120">
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../../index.html">
<img id="logo" class="svg" src="../../logo/lucene-net-color.png" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search" id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</div>
</div>
</header>
<div class="container body-content">
<div id="search-results">
<div class="search-list"></div>
<div class="sr-items">
<p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
</div>
<ul id="pagination"></ul>
</div>
</div>
<div role="main" class="container body-content hide-when-search">
<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="Lucene.Net.Support.TreeSet`1">
<h1 id="Lucene_Net_Support_TreeSet_1" data-uid="Lucene.Net.Support.TreeSet`1" class="text-break">Class TreeSet&lt;T&gt;
</h1>
<div class="markdown level0 summary"><p>An implementation of Red-Black trees as an indexed, sorted collection with set semantics,
cf. <a href="litterature.htm#CLRS">CLRS</a>. <span class="xref">C5.TreeBag`1</span> for a version
with bag semantics. <span class="xref">C5.TreeDictionary`2</span> for a sorted dictionary
based on this tree implementation.
<em>
The comparer (sorting order) may be either natural, because the item type is comparable
(generic: <span class="xref">C5.IComparable`1</span> or non-generic: System.IComparable) or it can
be external and supplied by the user in the constructor.</em></p>
<p><em>TODO: describe performance here</em>
<em>TODO: discuss persistence and its useful usage modes. Warn about the space
leak possible with other usage modes.</em></p>
</div>
<div class="markdown level0 conceptual"></div>
<div class="inheritance">
<h5>Inheritance</h5>
<div class="level0"><span class="xref">System.Object</span></div>
<div class="level1"><a class="xref" href="Lucene.Net.Support.C5.EnumerableBase-1.html">EnumerableBase</a>&lt;T&gt;</div>
<div class="level2"><a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html">CollectionValueBase</a>&lt;T&gt;</div>
<div class="level3"><a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html">CollectionBase</a>&lt;T&gt;</div>
<div class="level4"><a class="xref" href="Lucene.Net.Support.C5.DirectedCollectionBase-1.html">DirectedCollectionBase</a>&lt;T&gt;</div>
<div class="level5"><a class="xref" href="Lucene.Net.Support.C5.SequencedBase-1.html">SequencedBase</a>&lt;T&gt;</div>
<div class="level6"><span class="xref">TreeSet&lt;T&gt;</span></div>
</div>
<div classs="implements">
<h5>Implements</h5>
<div><a class="xref" href="Lucene.Net.Support.C5.IIndexedSorted-1.html">IIndexedSorted</a>&lt;T&gt;</div>
<div><a class="xref" href="Lucene.Net.Support.C5.IIndexed-1.html">IIndexed</a>&lt;T&gt;</div>
<div><a class="xref" href="Lucene.Net.Support.C5.IReadOnlyList-1.html">IReadOnlyList</a>&lt;T&gt;</div>
<div><a class="xref" href="Lucene.Net.Support.C5.IReadOnlyCollection-1.html">IReadOnlyCollection</a>&lt;T&gt;</div>
<div><a class="xref" href="Lucene.Net.Support.C5.IPersistentSorted-1.html">IPersistentSorted</a>&lt;T&gt;</div>
<div><a class="xref" href="Lucene.Net.Support.C5.ISorted-1.html">ISorted</a>&lt;T&gt;</div>
<div><a class="xref" href="Lucene.Net.Support.C5.ISequenced-1.html">ISequenced</a>&lt;T&gt;</div>
<div><a class="xref" href="Lucene.Net.Support.C5.ICollection-1.html">ICollection</a>&lt;T&gt;</div>
<div><a class="xref" href="Lucene.Net.Support.C5.IExtensible-1.html">IExtensible</a>&lt;T&gt;</div>
<div><a class="xref" href="Lucene.Net.Support.C5.IDirectedCollectionValue-1.html">IDirectedCollectionValue</a>&lt;T&gt;</div>
<div><a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html">ICollectionValue</a>&lt;T&gt;</div>
<div><a class="xref" href="Lucene.Net.Support.C5.IShowable.html">IShowable</a></div>
<div><span class="xref">System.IFormattable</span></div>
<div><a class="xref" href="Lucene.Net.Support.C5.IDirectedEnumerable-1.html">IDirectedEnumerable</a>&lt;T&gt;</div>
<div><span class="xref">System.IDisposable</span></div>
<div><span class="xref">System.Collections.Generic.ISet</span>&lt;T&gt;</div>
<div><span class="xref">System.Collections.Generic.ICollection</span>&lt;T&gt;</div>
<div><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</div>
<div><span class="xref">System.Collections.IEnumerable</span></div>
</div>
<div class="inheritedMembers">
<h5>Inherited Members</h5>
<div>
<a class="xref" href="Lucene.Net.Support.C5.SequencedBase-1.html#Lucene_Net_Support_C5_SequencedBase_1_ComputeHashCode_Lucene_Net_Support_C5_ISequenced__0__System_Collections_Generic_IEqualityComparer__0__">SequencedBase&lt;T&gt;.ComputeHashCode(ISequenced&lt;T&gt;, IEqualityComparer&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.SequencedBase-1.html#Lucene_Net_Support_C5_SequencedBase_1_StaticEquals_Lucene_Net_Support_C5_ISequenced__0__Lucene_Net_Support_C5_ISequenced__0__System_Collections_Generic_IEqualityComparer__0__">SequencedBase&lt;T&gt;.StaticEquals(ISequenced&lt;T&gt;, ISequenced&lt;T&gt;, IEqualityComparer&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.SequencedBase-1.html#Lucene_Net_Support_C5_SequencedBase_1_GetSequencedHashCode">SequencedBase&lt;T&gt;.GetSequencedHashCode()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.SequencedBase-1.html#Lucene_Net_Support_C5_SequencedBase_1_SequencedEquals_Lucene_Net_Support_C5_ISequenced__0__">SequencedBase&lt;T&gt;.SequencedEquals(ISequenced&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.SequencedBase-1.html#Lucene_Net_Support_C5_SequencedBase_1_Direction">SequencedBase&lt;T&gt;.Direction</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.SequencedBase-1.html#Lucene_Net_Support_C5_SequencedBase_1_FindIndex_System_Func__0_System_Boolean__">SequencedBase&lt;T&gt;.FindIndex(Func&lt;T, Boolean&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.SequencedBase-1.html#Lucene_Net_Support_C5_SequencedBase_1_FindLastIndex_System_Func__0_System_Boolean__">SequencedBase&lt;T&gt;.FindLastIndex(Func&lt;T, Boolean&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.DirectedCollectionBase-1.html#Lucene_Net_Support_C5_DirectedCollectionBase_1_FindLast_System_Func__0_System_Boolean___0__">DirectedCollectionBase&lt;T&gt;.FindLast(Func&lt;T, Boolean&gt;, T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_isReadOnlyBase">CollectionBase&lt;T&gt;.isReadOnlyBase</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_stamp">CollectionBase&lt;T&gt;.stamp</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_size">CollectionBase&lt;T&gt;.size</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_itemequalityComparer">CollectionBase&lt;T&gt;.itemequalityComparer</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_checkRange_System_Int32_System_Int32_">CollectionBase&lt;T&gt;.checkRange(Int32, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_ComputeHashCode_Lucene_Net_Support_C5_ICollectionValue__0__System_Collections_Generic_IEqualityComparer__0__">CollectionBase&lt;T&gt;.ComputeHashCode(ICollectionValue&lt;T&gt;, IEqualityComparer&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_StaticEquals_Lucene_Net_Support_C5_ICollection__0__Lucene_Net_Support_C5_ICollection__0__System_Collections_Generic_IEqualityComparer__0__">CollectionBase&lt;T&gt;.StaticEquals(ICollection&lt;T&gt;, ICollection&lt;T&gt;, IEqualityComparer&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_GetUnsequencedHashCode">CollectionBase&lt;T&gt;.GetUnsequencedHashCode()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_UnsequencedEquals_Lucene_Net_Support_C5_ICollection__0__">CollectionBase&lt;T&gt;.UnsequencedEquals(ICollection&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_modifycheck_System_Int32_">CollectionBase&lt;T&gt;.modifycheck(Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_updatecheck">CollectionBase&lt;T&gt;.updatecheck()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_IsReadOnly">CollectionBase&lt;T&gt;.IsReadOnly</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_Count">CollectionBase&lt;T&gt;.Count</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_CountSpeed">CollectionBase&lt;T&gt;.CountSpeed</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_EqualityComparer">CollectionBase&lt;T&gt;.EqualityComparer</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionBase-1.html#Lucene_Net_Support_C5_CollectionBase_1_IsEmpty">CollectionBase&lt;T&gt;.IsEmpty</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ActiveEvents">CollectionValueBase&lt;T&gt;.ActiveEvents</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_CollectionChanged">CollectionValueBase&lt;T&gt;.CollectionChanged</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseCollectionChanged">CollectionValueBase&lt;T&gt;.raiseCollectionChanged()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_CollectionCleared">CollectionValueBase&lt;T&gt;.CollectionCleared</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseCollectionCleared_System_Boolean_System_Int32_">CollectionValueBase&lt;T&gt;.raiseCollectionCleared(Boolean, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseCollectionCleared_System_Boolean_System_Int32_System_Nullable_System_Int32__">CollectionValueBase&lt;T&gt;.raiseCollectionCleared(Boolean, Int32, Nullable&lt;Int32&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ItemsAdded">CollectionValueBase&lt;T&gt;.ItemsAdded</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseItemsAdded__0_System_Int32_">CollectionValueBase&lt;T&gt;.raiseItemsAdded(T, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ItemsRemoved">CollectionValueBase&lt;T&gt;.ItemsRemoved</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseItemsRemoved__0_System_Int32_">CollectionValueBase&lt;T&gt;.raiseItemsRemoved(T, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ItemInserted">CollectionValueBase&lt;T&gt;.ItemInserted</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseItemInserted__0_System_Int32_">CollectionValueBase&lt;T&gt;.raiseItemInserted(T, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ItemRemovedAt">CollectionValueBase&lt;T&gt;.ItemRemovedAt</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseItemRemovedAt__0_System_Int32_">CollectionValueBase&lt;T&gt;.raiseItemRemovedAt(T, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForSetThis_System_Int32__0__0_">CollectionValueBase&lt;T&gt;.raiseForSetThis(Int32, T, T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForInsert_System_Int32__0_">CollectionValueBase&lt;T&gt;.raiseForInsert(Int32, T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForRemove__0_">CollectionValueBase&lt;T&gt;.raiseForRemove(T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForRemove__0_System_Int32_">CollectionValueBase&lt;T&gt;.raiseForRemove(T, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForRemoveAt_System_Int32__0_">CollectionValueBase&lt;T&gt;.raiseForRemoveAt(Int32, T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForUpdate__0__0_">CollectionValueBase&lt;T&gt;.raiseForUpdate(T, T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForUpdate__0__0_System_Int32_">CollectionValueBase&lt;T&gt;.raiseForUpdate(T, T, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForAdd__0_">CollectionValueBase&lt;T&gt;.raiseForAdd(T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_raiseForRemoveAll_Lucene_Net_Support_C5_ICollectionValue__0__">CollectionValueBase&lt;T&gt;.raiseForRemoveAll(ICollectionValue&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_CopyTo__0___System_Int32_">CollectionValueBase&lt;T&gt;.CopyTo(T[], Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ToArray">CollectionValueBase&lt;T&gt;.ToArray()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_Apply_System_Action__0__">CollectionValueBase&lt;T&gt;.Apply(Action&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_Exists_System_Func__0_System_Boolean__">CollectionValueBase&lt;T&gt;.Exists(Func&lt;T, Boolean&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_Find_System_Func__0_System_Boolean___0__">CollectionValueBase&lt;T&gt;.Find(Func&lt;T, Boolean&gt;, T)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_All_System_Func__0_System_Boolean__">CollectionValueBase&lt;T&gt;.All(Func&lt;T, Boolean&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_Filter_System_Func__0_System_Boolean__">CollectionValueBase&lt;T&gt;.Filter(Func&lt;T, Boolean&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_Show_System_Text_StringBuilder_System_Int32__System_IFormatProvider_">CollectionValueBase&lt;T&gt;.Show(StringBuilder, Int32, IFormatProvider)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ToString_System_String_System_IFormatProvider_">CollectionValueBase&lt;T&gt;.ToString(String, IFormatProvider)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.CollectionValueBase-1.html#Lucene_Net_Support_C5_CollectionValueBase_1_ToString">CollectionValueBase&lt;T&gt;.ToString()</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.EnumerableBase-1.html#Lucene_Net_Support_C5_EnumerableBase_1_countItems_System_Collections_Generic_IEnumerable__0__">EnumerableBase&lt;T&gt;.countItems(IEnumerable&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.EnumerableBase-1.html#Lucene_Net_Support_C5_EnumerableBase_1_System_Collections_IEnumerable_GetEnumerator">EnumerableBase&lt;T&gt;.IEnumerable.GetEnumerator()</a>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object)</span>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.GetHashCode()</span>
</div>
<div>
<span class="xref">System.Object.GetType()</span>
</div>
<div>
<span class="xref">System.Object.MemberwiseClone()</span>
</div>
<div>
<span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
</div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="../Lucene.Net.Benchmarks/Lucene.Net.Support.html">Lucene.Net.Support</a></h6>
<h6><strong>Assembly</strong>: Lucene.Net.dll</h6>
<h5 id="Lucene_Net_Support_TreeSet_1_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">[Serializable]
public class TreeSet&lt;T&gt; : SequencedBase&lt;T&gt;, IIndexedSorted&lt;T&gt;, IIndexed&lt;T&gt;, IReadOnlyList&lt;T&gt;, IReadOnlyCollection&lt;T&gt;, IPersistentSorted&lt;T&gt;, ISorted&lt;T&gt;, ISequenced&lt;T&gt;, ICollection&lt;T&gt;, IExtensible&lt;T&gt;, IDirectedCollectionValue&lt;T&gt;, ICollectionValue&lt;T&gt;, IShowable, IFormattable, IDirectedEnumerable&lt;T&gt;, IDisposable, ISet&lt;T&gt;, ICollection&lt;T&gt;, IEnumerable&lt;T&gt;, IEnumerable</code></pre>
</div>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">T</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="constructors">Constructors
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1__ctor_Lucene_Net_Support_C5_MemoryType_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.%23ctor(Lucene.Net.Support.C5.MemoryType)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L231">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1__ctor_" data-uid="Lucene.Net.Support.TreeSet`1.#ctor*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1__ctor_Lucene_Net_Support_C5_MemoryType_" data-uid="Lucene.Net.Support.TreeSet`1.#ctor(Lucene.Net.Support.C5.MemoryType)">TreeSet(MemoryType)</h4>
<div class="markdown level1 summary"><p>Create a red-black tree collection with natural comparer and item equalityComparer.
We assume that if <pre><code>T</code></pre> is comparable, its default equalityComparer
will be compatible with the comparer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public TreeSet(MemoryType memoryType = MemoryType.Normal)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.MemoryType.html">MemoryType</a></td>
<td><span class="parametername">memoryType</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.NotComparableException.html">NotComparableException</a></td>
<td><p>If <pre><code>T</code></pre> is not comparable.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1__ctor_System_Collections_Generic_IComparer__0__Lucene_Net_Support_C5_MemoryType_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.%23ctor(System.Collections.Generic.IComparer%7B%600%7D%2CLucene.Net.Support.C5.MemoryType)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L246">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1__ctor_" data-uid="Lucene.Net.Support.TreeSet`1.#ctor*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1__ctor_System_Collections_Generic_IComparer__0__Lucene_Net_Support_C5_MemoryType_" data-uid="Lucene.Net.Support.TreeSet`1.#ctor(System.Collections.Generic.IComparer{`0},Lucene.Net.Support.C5.MemoryType)">TreeSet(IComparer&lt;T&gt;, MemoryType)</h4>
<div class="markdown level1 summary"><p>Create a red-black tree collection with an external comparer.
<p>The itemequalityComparer will be a compatible
<span class="xref">C5.ComparerZeroHashCodeEqualityComparer`1</span> since the
default equalityComparer for T (<span class="xref">C5.EqualityComparer`1.Default</span>)
is unlikely to be compatible with the external comparer. This makes the
tree inadequate for use as item in a collection of unsequenced or sequenced sets or bags
(<span class="xref">C5.ICollection`1</span> and <span class="xref">C5.ISequenced`1</span>)
</p></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public TreeSet(IComparer&lt;T&gt; comparer, MemoryType memoryType = MemoryType.Normal)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IComparer</span>&lt;T&gt;</td>
<td><span class="parametername">comparer</span></td>
<td><p>The external comparer</p>
</td>
</tr>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.MemoryType.html">MemoryType</a></td>
<td><span class="parametername">memoryType</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1__ctor_System_Collections_Generic_IComparer__0__System_Collections_Generic_IEqualityComparer__0__Lucene_Net_Support_C5_MemoryType_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.%23ctor(System.Collections.Generic.IComparer%7B%600%7D%2CSystem.Collections.Generic.IEqualityComparer%7B%600%7D%2CLucene.Net.Support.C5.MemoryType)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L255">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1__ctor_" data-uid="Lucene.Net.Support.TreeSet`1.#ctor*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1__ctor_System_Collections_Generic_IComparer__0__System_Collections_Generic_IEqualityComparer__0__Lucene_Net_Support_C5_MemoryType_" data-uid="Lucene.Net.Support.TreeSet`1.#ctor(System.Collections.Generic.IComparer{`0},System.Collections.Generic.IEqualityComparer{`0},Lucene.Net.Support.C5.MemoryType)">TreeSet(IComparer&lt;T&gt;, IEqualityComparer&lt;T&gt;, MemoryType)</h4>
<div class="markdown level1 summary"><p>Create a red-black tree collection with an external comparer and an external
item equalityComparer, assumed consistent.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public TreeSet(IComparer&lt;T&gt; comparer, IEqualityComparer&lt;T&gt; equalityComparer, MemoryType memoryType = MemoryType.Normal)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IComparer</span>&lt;T&gt;</td>
<td><span class="parametername">comparer</span></td>
<td><p>The external comparer</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Collections.Generic.IEqualityComparer</span>&lt;T&gt;</td>
<td><span class="parametername">equalityComparer</span></td>
<td><p>The external item equalitySCG.Comparer</p>
</td>
</tr>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.MemoryType.html">MemoryType</a></td>
<td><span class="parametername">memoryType</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="properties">Properties
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_AllowsDuplicates.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.AllowsDuplicates%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1465">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_AllowsDuplicates_" data-uid="Lucene.Net.Support.TreeSet`1.AllowsDuplicates*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_AllowsDuplicates" data-uid="Lucene.Net.Support.TreeSet`1.AllowsDuplicates">AllowsDuplicates</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool AllowsDuplicates { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>False since this tree has set semantics.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Comparer.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Comparer%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2822">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Comparer_" data-uid="Lucene.Net.Support.TreeSet`1.Comparer*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Comparer" data-uid="Lucene.Net.Support.TreeSet`1.Comparer">Comparer</h4>
<div class="markdown level1 summary"><p>The comparer object supplied at creation time for this collection</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IComparer&lt;T&gt; Comparer { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IComparer</span>&lt;T&gt;</td>
<td><p>The comparer</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_ContainsSpeed.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.ContainsSpeed%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1485">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_ContainsSpeed_" data-uid="Lucene.Net.Support.TreeSet`1.ContainsSpeed*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_ContainsSpeed" data-uid="Lucene.Net.Support.TreeSet`1.ContainsSpeed">ContainsSpeed</h4>
<div class="markdown level1 summary"><p>The value is symbolic indicating the type of asymptotic complexity
in terms of the size of this collection (worst-case or amortized as
relevant).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Speed ContainsSpeed { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.Speed.html">Speed</a></td>
<td><p>Speed.Log</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_DuplicatesByCounting.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.DuplicatesByCounting%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1472">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_DuplicatesByCounting_" data-uid="Lucene.Net.Support.TreeSet`1.DuplicatesByCounting*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_DuplicatesByCounting" data-uid="Lucene.Net.Support.TreeSet`1.DuplicatesByCounting">DuplicatesByCounting</h4>
<div class="markdown level1 summary"><p>By convention this is true for any collection with set semantics.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual bool DuplicatesByCounting { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if only one representative of a group of equal items
is kept in the collection together with the total count.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_IndexingSpeed.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.IndexingSpeed%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2445">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_IndexingSpeed_" data-uid="Lucene.Net.Support.TreeSet`1.IndexingSpeed*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_IndexingSpeed" data-uid="Lucene.Net.Support.TreeSet`1.IndexingSpeed">IndexingSpeed</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual Speed IndexingSpeed { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.Speed.html">Speed</a></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Item_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Item(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2439">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Item_" data-uid="Lucene.Net.Support.TreeSet`1.Item*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Item_System_Int32_" data-uid="Lucene.Net.Support.TreeSet`1.Item(System.Int32)">Item[Int32]</h4>
<div class="markdown level1 summary"><p><span class="xref">System.IndexOutOfRangeException</span> if i is negative or</p>
<blockquote><p>= the size of the collection.</p>
</blockquote>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public T this[int i] { get; }</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">i</span></td>
<td><p>the index to lookup</p>
</td>
</tr>
</tbody>
</table>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>The i&apos;th item of this list.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Item_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Item(System.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2625">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Item_" data-uid="Lucene.Net.Support.TreeSet`1.Item*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Item_System_Int32_System_Int32_" data-uid="Lucene.Net.Support.TreeSet`1.Item(System.Int32,System.Int32)">Item[Int32, Int32]</h4>
<div class="markdown level1 summary"><p><span class="xref">System.IndexOutOfRangeException</span>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IDirectedCollectionValue&lt;T&gt; this[int start, int count] { get; }</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">start</span></td>
<td><p>The starting index of the interval (inclusive).</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The length of the interval.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.IDirectedCollectionValue-1.html">IDirectedCollectionValue</a>&lt;T&gt;</td>
<td><p>The directed collection of items in a specific index interval.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_ListenableEvents.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.ListenableEvents%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L80">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_ListenableEvents_" data-uid="Lucene.Net.Support.TreeSet`1.ListenableEvents*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_ListenableEvents" data-uid="Lucene.Net.Support.TreeSet`1.ListenableEvents">ListenableEvents</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override EventTypeEnum ListenableEvents { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.EventTypeEnum.html">EventTypeEnum</a></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><span class="xref">Lucene.Net.Support.C5.CollectionValueBase&lt;T&gt;.ListenableEvents</span></div>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Add__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Add(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1238">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Add_" data-uid="Lucene.Net.Support.TreeSet`1.Add*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Add__0_" data-uid="Lucene.Net.Support.TreeSet`1.Add(`0)">Add(T)</h4>
<div class="markdown level1 summary"><p>Add an item to this collection if possible. If this collection has set
semantics, the item will be added if not already in the collection. If
bag semantics, the item will always be added.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Add(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The item to add.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if item was added.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_AddAll_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.AddAll(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1286">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_AddAll_" data-uid="Lucene.Net.Support.TreeSet`1.AddAll*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_AddAll_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.AddAll(System.Collections.Generic.IEnumerable{`0})">AddAll(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Add the elements from another collection with a more specialized item type
to this collection. If this
collection has set semantics, only items not already in the collection
will be added.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddAll(IEnumerable&lt;T&gt; items)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">items</span></td>
<td><p>The items to add</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_AddSorted_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.AddSorted(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1327">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_AddSorted_" data-uid="Lucene.Net.Support.TreeSet`1.AddSorted*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_AddSorted_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.AddSorted(System.Collections.Generic.IEnumerable{`0})">AddSorted(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Add all the items from another collection with an enumeration order that
is increasing in the items. <p>The idea is that the implementation may use
a faster algorithm to merge the two collections.</p>
<span class="xref">System.ArgumentException</span> if the enumerated items turns out
not to be in increasing order.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddSorted(IEnumerable&lt;T&gt; items)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">items</span></td>
<td><p>The collection to add.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Backwards.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Backwards%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2809">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Backwards_" data-uid="Lucene.Net.Support.TreeSet`1.Backwards*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Backwards" data-uid="Lucene.Net.Support.TreeSet`1.Backwards">Backwards()</h4>
<div class="markdown level1 summary"><p>Create a collection containing the same items as this collection, but
whose enumerator will enumerate the items backwards. The new collection
will become invalid if the original is modified. Method typically used as in</p>
<pre><code>foreach (T x in coll.Backwards()) {...}</code></pre>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override IDirectedCollectionValue&lt;T&gt; Backwards()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.IDirectedCollectionValue-1.html">IDirectedCollectionValue</a>&lt;T&gt;</td>
<td><p>The backwards collection.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><span class="xref">Lucene.Net.Support.C5.DirectedCollectionBase&lt;T&gt;.Backwards()</span></div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Check.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Check%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L4166">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Check_" data-uid="Lucene.Net.Support.TreeSet`1.Check*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Check" data-uid="Lucene.Net.Support.TreeSet`1.Check">Check()</h4>
<div class="markdown level1 summary"><p>Checks red-black invariant. Dumps tree to console if bad</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Check()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>false if invariant violation</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Check_System_String_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Check(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L4148">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Check_" data-uid="Lucene.Net.Support.TreeSet`1.Check*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Check_System_String_" data-uid="Lucene.Net.Support.TreeSet`1.Check(System.String)">Check(String)</h4>
<div class="markdown level1 summary"><p>Checks red-black invariant. Dumps tree to console if bad</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Check(string name)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">name</span></td>
<td><p>Title of dump</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>false if invariant violation</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Choose.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Choose%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L983">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Choose_" data-uid="Lucene.Net.Support.TreeSet`1.Choose*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Choose" data-uid="Lucene.Net.Support.TreeSet`1.Choose">Choose()</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override T Choose()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><span class="xref">Lucene.Net.Support.C5.CollectionValueBase&lt;T&gt;.Choose()</span></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.NoSuchItemException.html">NoSuchItemException</a></td>
<td><p>If tree is empty</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Clear.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Clear%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2072">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Clear_" data-uid="Lucene.Net.Support.TreeSet`1.Clear*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Clear" data-uid="Lucene.Net.Support.TreeSet`1.Clear">Clear()</h4>
<div class="markdown level1 summary"><p>Remove all items from this collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void Clear()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Contains__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Contains(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1493">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Contains_" data-uid="Lucene.Net.Support.TreeSet`1.Contains*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Contains__0_" data-uid="Lucene.Net.Support.TreeSet`1.Contains(`0)">Contains(T)</h4>
<div class="markdown level1 summary"><p>Check if this collection contains (an item equivalent to according to the
itemequalityComparer) a particular value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Contains(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The value to check for.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if the items is in this collection.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_ContainsAll_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.ContainsAll(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2197">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_ContainsAll_" data-uid="Lucene.Net.Support.TreeSet`1.ContainsAll*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_ContainsAll_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.ContainsAll(System.Collections.Generic.IEnumerable{`0})">ContainsAll(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Check if this collection contains all the values in another collection.
If this collection has bag semantics (<pre><code>AllowsDuplicates==true</code></pre>)
the check is made with respect to multiplicities, else multiplicities
are not taken into account.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool ContainsAll(IEnumerable&lt;T&gt; items)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">items</span></td>
<td><p>The </p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if all values in <pre><code>items</code></pre>is in this collection.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_ContainsCount__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.ContainsCount(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2349">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_ContainsCount_" data-uid="Lucene.Net.Support.TreeSet`1.ContainsCount*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_ContainsCount__0_" data-uid="Lucene.Net.Support.TreeSet`1.ContainsCount(`0)">ContainsCount(T)</h4>
<div class="markdown level1 summary"><p>Count the number of items of the collection equal to a particular value.
Returns 0 if and only if the value is not in the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int ContainsCount(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The value to count.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of copies found.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_CountFrom__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.CountFrom(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3417">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_CountFrom_" data-uid="Lucene.Net.Support.TreeSet`1.CountFrom*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_CountFrom__0_" data-uid="Lucene.Net.Support.TreeSet`1.CountFrom(`0)">CountFrom(T)</h4>
<div class="markdown level1 summary"><p>Determine the number of items at or above a supplied threshold.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int CountFrom(T bot)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">bot</span></td>
<td><p>The lower bound (inclusive)</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of matching items.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_CountFromTo__0__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.CountFromTo(%600%2C%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3431">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_CountFromTo_" data-uid="Lucene.Net.Support.TreeSet`1.CountFromTo*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_CountFromTo__0__0_" data-uid="Lucene.Net.Support.TreeSet`1.CountFromTo(`0,`0)">CountFromTo(T, T)</h4>
<div class="markdown level1 summary"><p>Determine the number of items between two supplied thresholds.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int CountFromTo(T bot, T top)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">bot</span></td>
<td><p>The lower bound (inclusive)</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">top</span></td>
<td><p>The upper bound (exclusive)</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of matching items.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_CountTo__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.CountTo(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3447">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_CountTo_" data-uid="Lucene.Net.Support.TreeSet`1.CountTo*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_CountTo__0_" data-uid="Lucene.Net.Support.TreeSet`1.CountTo(`0)">CountTo(T)</h4>
<div class="markdown level1 summary"><p>Determine the number of items below a supplied threshold.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int CountTo(T top)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">top</span></td>
<td><p>The upper bound (exclusive)</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>The number of matching items.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Cut_System_IComparable__0___0__System_Boolean___0__System_Boolean__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Cut(System.IComparable%7B%600%7D%2C%600%40%2CSystem.Boolean%40%2C%600%40%2CSystem.Boolean%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3328">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Cut_" data-uid="Lucene.Net.Support.TreeSet`1.Cut*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Cut_System_IComparable__0___0__System_Boolean___0__System_Boolean__" data-uid="Lucene.Net.Support.TreeSet`1.Cut(System.IComparable{`0},`0@,System.Boolean@,`0@,System.Boolean@)">Cut(IComparable&lt;T&gt;, out T, out Boolean, out T, out Boolean)</h4>
<div class="markdown level1 summary"><p>Perform a search in the sorted collection for the ranges in which a
non-increasing (i.e. weakly decreasing) function from the item type to </p>
<pre><code>int</code></pre> is
<p>negative, zero respectively positive. If the supplied cut function is
not non-increasing, the result of this call is undefined.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Cut(IComparable&lt;T&gt; c, out T low, out bool lowIsValid, out T high, out bool highIsValid)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.IComparable</span>&lt;T&gt;</td>
<td><span class="parametername">c</span></td>
<td><p>The cut function <pre><code>T</code></pre> to <pre><code>int</code></pre>, given
as an <pre><code>IComparable&lt;T></code></pre> object, where the cut function is
the <pre><code>c.CompareTo(T that)</code></pre> method.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">low</span></td>
<td><p>Returns the largest item in the collection, where the
cut function is positive (if any).</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">lowIsValid</span></td>
<td><p>True if the cut function is positive somewhere
on this collection.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">high</span></td>
<td><p>Returns the least item in the collection, where the
cut function is negative (if any).</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">highIsValid</span></td>
<td><p>True if the cut function is negative somewhere
on this collection.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_DeleteMax.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.DeleteMax%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2919">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_DeleteMax_" data-uid="Lucene.Net.Support.TreeSet`1.DeleteMax*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_DeleteMax" data-uid="Lucene.Net.Support.TreeSet`1.DeleteMax">DeleteMax()</h4>
<div class="markdown level1 summary"><p>Remove the largest item from this priority queue.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public T DeleteMax()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>The removed item.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_DeleteMin.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.DeleteMin%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2851">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_DeleteMin_" data-uid="Lucene.Net.Support.TreeSet`1.DeleteMin*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_DeleteMin" data-uid="Lucene.Net.Support.TreeSet`1.DeleteMin">DeleteMin()</h4>
<div class="markdown level1 summary"><p>Remove the least item from this priority queue.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public T DeleteMin()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>The removed item.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Dispose.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Dispose%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3594">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Dispose_" data-uid="Lucene.Net.Support.TreeSet`1.Dispose*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Dispose" data-uid="Lucene.Net.Support.TreeSet`1.Dispose">Dispose()</h4>
<div class="markdown level1 summary"><p>If this tree is a snapshot, remove registration in base tree</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void Dispose()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_dump.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.dump%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L4026">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_dump_" data-uid="Lucene.Net.Support.TreeSet`1.dump*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_dump" data-uid="Lucene.Net.Support.TreeSet`1.dump">dump()</h4>
<div class="markdown level1 summary"><p>Print the tree structure to the console stdout.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void dump()</code></pre>
</div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_dump_System_String_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.dump(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L4032">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_dump_" data-uid="Lucene.Net.Support.TreeSet`1.dump*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_dump_System_String_" data-uid="Lucene.Net.Support.TreeSet`1.dump(System.String)">dump(String)</h4>
<div class="markdown level1 summary"><p>Print the tree structure to the console stdout.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void dump(string msg)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">msg</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_ExceptWith_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.ExceptWith(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L596">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_ExceptWith_" data-uid="Lucene.Net.Support.TreeSet`1.ExceptWith*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_ExceptWith_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.ExceptWith(System.Collections.Generic.IEnumerable{`0})">ExceptWith(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Removes all elements in the specified collection from the current <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void ExceptWith(IEnumerable&lt;T&gt; other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">other</span></td>
<td><p>The collection of items to remove from the set.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Find__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Find(%600%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1522">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Find_" data-uid="Lucene.Net.Support.TreeSet`1.Find*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Find__0__" data-uid="Lucene.Net.Support.TreeSet`1.Find(`0@)">Find(ref T)</h4>
<div class="markdown level1 summary"><p>Check if this collection contains an item equivalent according to the
itemequalityComparer to a particular value. If so, return in the ref argument (a
binary copy of) the actual value found.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Find(ref T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The value to look for.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if the items is in this collection.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_FindAll_System_Func__0_System_Boolean__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.FindAll(System.Func%7B%600%2CSystem.Boolean%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2217">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_FindAll_" data-uid="Lucene.Net.Support.TreeSet`1.FindAll*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_FindAll_System_Func__0_System_Boolean__" data-uid="Lucene.Net.Support.TreeSet`1.FindAll(System.Func{`0,System.Boolean})">FindAll(Func&lt;T, Boolean&gt;)</h4>
<div class="markdown level1 summary"><p>Create a new indexed sorted collection consisting of the items of this
indexed sorted collection satisfying a certain predicate.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IIndexedSorted&lt;T&gt; FindAll(Func&lt;T, bool&gt; filter)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Func</span>&lt;T, <span class="xref">System.Boolean</span>&gt;</td>
<td><span class="parametername">filter</span></td>
<td><p>The filter delegate defining the predicate.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.IIndexedSorted-1.html">IIndexedSorted</a>&lt;T&gt;</td>
<td><p>The new indexed sorted collection.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_FindMax.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.FindMax%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2896">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_FindMax_" data-uid="Lucene.Net.Support.TreeSet`1.FindMax*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_FindMax" data-uid="Lucene.Net.Support.TreeSet`1.FindMax">FindMax()</h4>
<div class="markdown level1 summary"><p>Find the current largest item of this priority queue.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public T FindMax()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>The largest item.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_FindMin.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.FindMin%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2829">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_FindMin_" data-uid="Lucene.Net.Support.TreeSet`1.FindMin*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_FindMin" data-uid="Lucene.Net.Support.TreeSet`1.FindMin">FindMin()</h4>
<div class="markdown level1 summary"><p>Find the current least item of this priority queue.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public T FindMin()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>The least item.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_FindOrAdd__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.FindOrAdd(%600%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1553">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_FindOrAdd_" data-uid="Lucene.Net.Support.TreeSet`1.FindOrAdd*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_FindOrAdd__0__" data-uid="Lucene.Net.Support.TreeSet`1.FindOrAdd(`0@)">FindOrAdd(ref T)</h4>
<div class="markdown level1 summary"><p>Find or add the item to the tree. If the tree does not contain
an item equivalent to this item add it, else return the existing
one in the ref argument. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool FindOrAdd(ref T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if item was found</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_GetEnumerator.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.GetEnumerator%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L998">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_GetEnumerator_" data-uid="Lucene.Net.Support.TreeSet`1.GetEnumerator*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_GetEnumerator" data-uid="Lucene.Net.Support.TreeSet`1.GetEnumerator">GetEnumerator()</h4>
<div class="markdown level1 summary"><p>Create an enumerator for this tree</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public override IEnumerator&lt;T&gt; GetEnumerator()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerator</span>&lt;T&gt;</td>
<td><p>The enumerator</p>
</td>
</tr>
</tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><span class="xref">Lucene.Net.Support.C5.EnumerableBase&lt;T&gt;.GetEnumerator()</span></div>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_IndexOf__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.IndexOf(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2456">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_IndexOf_" data-uid="Lucene.Net.Support.TreeSet`1.IndexOf*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_IndexOf__0_" data-uid="Lucene.Net.Support.TreeSet`1.IndexOf(`0)">IndexOf(T)</h4>
<div class="markdown level1 summary"><p>Searches for an item in this indexed collection going forwards from the start.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int IndexOf(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>Item to search for.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>Index of first occurrence from start of the item
if found, else the two-complement
(always negative) of the index at which the item would be put if it was added.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_IntersectWith_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.IntersectWith(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L569">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_IntersectWith_" data-uid="Lucene.Net.Support.TreeSet`1.IntersectWith*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_IntersectWith_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.IntersectWith(System.Collections.Generic.IEnumerable{`0})">IntersectWith(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Modifies the current <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object so that it contains only elements that are also in a specified collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void IntersectWith(IEnumerable&lt;T&gt; other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">other</span></td>
<td><p>The collection to compare to the current set.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_IsProperSubsetOf_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.IsProperSubsetOf(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L777">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_IsProperSubsetOf_" data-uid="Lucene.Net.Support.TreeSet`1.IsProperSubsetOf*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_IsProperSubsetOf_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.IsProperSubsetOf(System.Collections.Generic.IEnumerable{`0})">IsProperSubsetOf(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Determines whether a <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object is a proper subset of the specified collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual bool IsProperSubsetOf(IEnumerable&lt;T&gt; other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">other</span></td>
<td><p>The collection to compare to the current <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><code>true</code> if the <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object is a proper subset of other; otherwise, <code>false</code>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_IsProperSupersetOf_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.IsProperSupersetOf(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L736">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_IsProperSupersetOf_" data-uid="Lucene.Net.Support.TreeSet`1.IsProperSupersetOf*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_IsProperSupersetOf_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.IsProperSupersetOf(System.Collections.Generic.IEnumerable{`0})">IsProperSupersetOf(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Determines whether a <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object is a proper superset of the specified collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual bool IsProperSupersetOf(IEnumerable&lt;T&gt; other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">other</span></td>
<td><p>The collection to compare to the current <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><code>true</code> if the <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object is a proper superset of other; otherwise, <code>false</code>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_IsSubsetOf_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.IsSubsetOf(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L663">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_IsSubsetOf_" data-uid="Lucene.Net.Support.TreeSet`1.IsSubsetOf*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_IsSubsetOf_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.IsSubsetOf(System.Collections.Generic.IEnumerable{`0})">IsSubsetOf(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Determines whether a <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object is a subset of the specified collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual bool IsSubsetOf(IEnumerable&lt;T&gt; other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">other</span></td>
<td><p>The collection to compare to the current <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><code>true</code> if the <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object is a subset of other; otherwise, <code>false</code>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_IsSupersetOf_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.IsSupersetOf(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L703">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_IsSupersetOf_" data-uid="Lucene.Net.Support.TreeSet`1.IsSupersetOf*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_IsSupersetOf_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.IsSupersetOf(System.Collections.Generic.IEnumerable{`0})">IsSupersetOf(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Determines whether a <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object is a superset of the specified collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual bool IsSupersetOf(IEnumerable&lt;T&gt; other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">other</span></td>
<td><p>The collection to compare to the current <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><code>true</code> if the <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object is a superset of other; otherwise, <code>false</code>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_ItemMultiplicities.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.ItemMultiplicities%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2379">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_ItemMultiplicities_" data-uid="Lucene.Net.Support.TreeSet`1.ItemMultiplicities*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_ItemMultiplicities" data-uid="Lucene.Net.Support.TreeSet`1.ItemMultiplicities">ItemMultiplicities()</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual ICollectionValue&lt;KeyValuePair&lt;T, int&gt;&gt; ItemMultiplicities()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html">ICollectionValue</a>&lt;<a class="xref" href="Lucene.Net.Support.C5.KeyValuePair-2.html">KeyValuePair</a>&lt;T, <span class="xref">System.Int32</span>&gt;&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_LastIndexOf__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.LastIndexOf(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2508">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_LastIndexOf_" data-uid="Lucene.Net.Support.TreeSet`1.LastIndexOf*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_LastIndexOf__0_" data-uid="Lucene.Net.Support.TreeSet`1.LastIndexOf(`0)">LastIndexOf(T)</h4>
<div class="markdown level1 summary"><p>Searches for an item in the tree going backwards from the end.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public int LastIndexOf(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>Item to search for.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><p>Index of last occurrence from the end of item if found,
else the two-complement (always negative) of the index at which
the item would be put if it was added.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Map__1_System_Func__0___0__System_Collections_Generic_IComparer___0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Map%60%601(System.Func%7B%600%2C%60%600%7D%2CSystem.Collections.Generic.IComparer%7B%60%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2281">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Map_" data-uid="Lucene.Net.Support.TreeSet`1.Map*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Map__1_System_Func__0___0__System_Collections_Generic_IComparer___0__" data-uid="Lucene.Net.Support.TreeSet`1.Map``1(System.Func{`0,``0},System.Collections.Generic.IComparer{``0})">Map&lt;V&gt;(Func&lt;T, V&gt;, IComparer&lt;V&gt;)</h4>
<div class="markdown level1 summary"><p>Create a new indexed sorted collection consisting of the results of
mapping all items of this list.
<span class="xref">System.ArgumentException</span> if the map is not increasing over
the items of this collection (with respect to the two given comparison
relations).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IIndexedSorted&lt;V&gt; Map&lt;V&gt;(Func&lt;T, V&gt; mapper, IComparer&lt;V&gt; c)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Func</span>&lt;T, V&gt;</td>
<td><span class="parametername">mapper</span></td>
<td><p>The delegate definging the map.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Collections.Generic.IComparer</span>&lt;V&gt;</td>
<td><span class="parametername">c</span></td>
<td><p>The comparion relation to use for the result.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.IIndexedSorted-1.html">IIndexedSorted</a>&lt;V&gt;</td>
<td><p>The new sorted collection.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="parametername">V</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Overlaps_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Overlaps(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L813">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Overlaps_" data-uid="Lucene.Net.Support.TreeSet`1.Overlaps*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Overlaps_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.Overlaps(System.Collections.Generic.IEnumerable{`0})">Overlaps(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Determines whether the current <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object and a specified collection share common elements.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual bool Overlaps(IEnumerable&lt;T&gt; other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">other</span></td>
<td><p>The collection to compare to the current <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><code>true</code> if the <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object and other share at least one common element; otherwise, <code>false</code>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Predecessor__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Predecessor(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3151">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Predecessor_" data-uid="Lucene.Net.Support.TreeSet`1.Predecessor*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Predecessor__0_" data-uid="Lucene.Net.Support.TreeSet`1.Predecessor(`0)">Predecessor(T)</h4>
<div class="markdown level1 summary"><p>Find the strict predecessor in the sorted collection of a particular value,
i.e. the largest item in the collection less than the supplied value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public T Predecessor(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The item to find the predecessor for.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>The predecessor.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.NoSuchItemException.html">NoSuchItemException</a></td>
<td><p>if no such element exists (the
supplied value is less than or equal to the minimum of this collection.)</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_RangeAll.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.RangeAll%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3259">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_RangeAll_" data-uid="Lucene.Net.Support.TreeSet`1.RangeAll*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_RangeAll" data-uid="Lucene.Net.Support.TreeSet`1.RangeAll">RangeAll()</h4>
<div class="markdown level1 summary"><p>Create a directed collection with the same items as this collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IDirectedCollectionValue&lt;T&gt; RangeAll()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.IDirectedCollectionValue-1.html">IDirectedCollectionValue</a>&lt;T&gt;</td>
<td><p>The result directed collection.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_RangeFrom__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.RangeFrom(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3220">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_RangeFrom_" data-uid="Lucene.Net.Support.TreeSet`1.RangeFrom*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_RangeFrom__0_" data-uid="Lucene.Net.Support.TreeSet`1.RangeFrom(`0)">RangeFrom(T)</h4>
<div class="markdown level1 summary"><p>Query this sorted collection for items greater than or equal to a supplied value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IDirectedCollectionValue&lt;T&gt; RangeFrom(T bot)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">bot</span></td>
<td><p>The lower bound (inclusive).</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.IDirectedCollectionValue-1.html">IDirectedCollectionValue</a>&lt;T&gt;</td>
<td><p>The result directed collection.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_RangeFromTo__0__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.RangeFromTo(%600%2C%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3234">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_RangeFromTo_" data-uid="Lucene.Net.Support.TreeSet`1.RangeFromTo*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_RangeFromTo__0__0_" data-uid="Lucene.Net.Support.TreeSet`1.RangeFromTo(`0,`0)">RangeFromTo(T, T)</h4>
<div class="markdown level1 summary"><p>Query this sorted collection for items between two supplied values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IDirectedCollectionValue&lt;T&gt; RangeFromTo(T bot, T top)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">bot</span></td>
<td><p>The lower bound (inclusive).</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">top</span></td>
<td><p>The upper bound (exclusive).</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.IDirectedCollectionValue-1.html">IDirectedCollectionValue</a>&lt;T&gt;</td>
<td><p>The result directed collection.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_RangeTo__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.RangeTo(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3247">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_RangeTo_" data-uid="Lucene.Net.Support.TreeSet`1.RangeTo*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_RangeTo__0_" data-uid="Lucene.Net.Support.TreeSet`1.RangeTo(`0)">RangeTo(T)</h4>
<div class="markdown level1 summary"><p>Query this sorted collection for items less than a supplied value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IDirectedCollectionValue&lt;T&gt; RangeTo(T top)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">top</span></td>
<td><p>The upper bound (exclusive).</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.IDirectedCollectionValue-1.html">IDirectedCollectionValue</a>&lt;T&gt;</td>
<td><p>The result directed collection.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Remove__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Remove(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1698">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Remove_" data-uid="Lucene.Net.Support.TreeSet`1.Remove*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Remove__0_" data-uid="Lucene.Net.Support.TreeSet`1.Remove(`0)">Remove(T)</h4>
<div class="markdown level1 summary"><p>Remove a particular item from this collection. If the collection has bag
semantics only one copy equivalent to the supplied item is removed. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Remove(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The value to remove.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if the item was found (and removed).</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Remove__0__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Remove(%600%2C%600%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1723">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Remove_" data-uid="Lucene.Net.Support.TreeSet`1.Remove*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Remove__0__0__" data-uid="Lucene.Net.Support.TreeSet`1.Remove(`0,`0@)">Remove(T, out T)</h4>
<div class="markdown level1 summary"><p>Remove a particular item from this collection if found. If the collection
has bag semantics only one copy equivalent to the supplied item is removed,
which one is implementation dependent.
If an item was removed, report a binary copy of the actual item removed in
the argument.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Remove(T item, out T removeditem)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The value to remove.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">removeditem</span></td>
<td><p>The removed value.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if the item was found (and removed).</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_RemoveAll_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.RemoveAll(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2101">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_RemoveAll_" data-uid="Lucene.Net.Support.TreeSet`1.RemoveAll*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_RemoveAll_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.RemoveAll(System.Collections.Generic.IEnumerable{`0})">RemoveAll(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Remove all items in another collection from this one. If this collection
has bag semantics, take multiplicities into account.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void RemoveAll(IEnumerable&lt;T&gt; items)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">items</span></td>
<td><p>The items to remove.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_RemoveAllCopies__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.RemoveAllCopies(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2392">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_RemoveAllCopies_" data-uid="Lucene.Net.Support.TreeSet`1.RemoveAllCopies*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_RemoveAllCopies__0_" data-uid="Lucene.Net.Support.TreeSet`1.RemoveAllCopies(`0)">RemoveAllCopies(T)</h4>
<div class="markdown level1 summary"><p>Remove all items equivalent to a given value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void RemoveAllCopies(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The value to remove.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_RemoveAt_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.RemoveAt(System.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2526">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_RemoveAt_" data-uid="Lucene.Net.Support.TreeSet`1.RemoveAt*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_RemoveAt_System_Int32_" data-uid="Lucene.Net.Support.TreeSet`1.RemoveAt(System.Int32)">RemoveAt(Int32)</h4>
<div class="markdown level1 summary"><p>Remove the item at a specific position of the list.
<span class="xref">System.IndexOutOfRangeException</span> if i is negative or</p>
<blockquote><p>= the size of the collection.</p>
</blockquote>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public T RemoveAt(int i)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">i</span></td>
<td><p>The index of the item to remove.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>The removed item.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_RemoveInterval_System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.RemoveInterval(System.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2593">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_RemoveInterval_" data-uid="Lucene.Net.Support.TreeSet`1.RemoveInterval*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_RemoveInterval_System_Int32_System_Int32_" data-uid="Lucene.Net.Support.TreeSet`1.RemoveInterval(System.Int32,System.Int32)">RemoveInterval(Int32, Int32)</h4>
<div class="markdown level1 summary"><p>Remove all items in an index interval.
<span class="xref">System.IndexOutOfRangeException</span>???. </p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void RemoveInterval(int start, int count)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">start</span></td>
<td><p>The index of the first item to remove.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">count</span></td>
<td><p>The number of items to remove.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_RemoveRangeFrom__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.RemoveRangeFrom(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3459">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_RemoveRangeFrom_" data-uid="Lucene.Net.Support.TreeSet`1.RemoveRangeFrom*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_RemoveRangeFrom__0_" data-uid="Lucene.Net.Support.TreeSet`1.RemoveRangeFrom(`0)">RemoveRangeFrom(T)</h4>
<div class="markdown level1 summary"><p>Remove all items of this collection above or at a supplied threshold.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void RemoveRangeFrom(T low)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">low</span></td>
<td><p>The lower threshold (inclusive).</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_RemoveRangeFromTo__0__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.RemoveRangeFromTo(%600%2C%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3491">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_RemoveRangeFromTo_" data-uid="Lucene.Net.Support.TreeSet`1.RemoveRangeFromTo*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_RemoveRangeFromTo__0__0_" data-uid="Lucene.Net.Support.TreeSet`1.RemoveRangeFromTo(`0,`0)">RemoveRangeFromTo(T, T)</h4>
<div class="markdown level1 summary"><p>Remove all items of this collection between two supplied thresholds.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void RemoveRangeFromTo(T low, T hi)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">low</span></td>
<td><p>The lower threshold (inclusive).</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">hi</span></td>
<td><p>The upper threshold (exclusive).</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_RemoveRangeTo__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.RemoveRangeTo(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3522">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_RemoveRangeTo_" data-uid="Lucene.Net.Support.TreeSet`1.RemoveRangeTo*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_RemoveRangeTo__0_" data-uid="Lucene.Net.Support.TreeSet`1.RemoveRangeTo(`0)">RemoveRangeTo(T)</h4>
<div class="markdown level1 summary"><p>Remove all items of this collection below a supplied threshold.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void RemoveRangeTo(T hi)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">hi</span></td>
<td><p>The upper threshold (exclusive).</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_RetainAll_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.RetainAll(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2131">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_RetainAll_" data-uid="Lucene.Net.Support.TreeSet`1.RetainAll*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_RetainAll_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.RetainAll(System.Collections.Generic.IEnumerable{`0})">RetainAll(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Remove all items not in some other collection from this one. If this collection
has bag semantics, take multiplicities into account.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void RetainAll(IEnumerable&lt;T&gt; items)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">items</span></td>
<td><p>The items to retain.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_SetEquals_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.SetEquals(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L836">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_SetEquals_" data-uid="Lucene.Net.Support.TreeSet`1.SetEquals*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_SetEquals_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.SetEquals(System.Collections.Generic.IEnumerable{`0})">SetEquals(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Determines whether the current <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> and the specified collection contain the same elements.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual bool SetEquals(IEnumerable&lt;T&gt; other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">other</span></td>
<td><p>The collection to compare to the current <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a>.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p><code>true</code> if the current <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> is equal to other; otherwise, <code>false</code>.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Snapshot.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Snapshot%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3636">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Snapshot_" data-uid="Lucene.Net.Support.TreeSet`1.Snapshot*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Snapshot" data-uid="Lucene.Net.Support.TreeSet`1.Snapshot">Snapshot()</h4>
<div class="markdown level1 summary"><p>Make a (read-only) snapshot of this collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public ISorted&lt;T&gt; Snapshot()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.ISorted-1.html">ISorted</a>&lt;T&gt;</td>
<td><p>The snapshot.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Successor__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Successor(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3187">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Successor_" data-uid="Lucene.Net.Support.TreeSet`1.Successor*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Successor__0_" data-uid="Lucene.Net.Support.TreeSet`1.Successor(`0)">Successor(T)</h4>
<div class="markdown level1 summary"><p>Find the strict successor in the sorted collection of a particular value,
i.e. the least item in the collection greater than the supplied value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public T Successor(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The item to find the successor for.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>The successor.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.NoSuchItemException.html">NoSuchItemException</a></td>
<td><p>if no such element exists (the
supplied value is greater than or equal to the maximum of this collection.)</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_SymmetricExceptWith_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.SymmetricExceptWith(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L620">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_SymmetricExceptWith_" data-uid="Lucene.Net.Support.TreeSet`1.SymmetricExceptWith*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_SymmetricExceptWith_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.SymmetricExceptWith(System.Collections.Generic.IEnumerable{`0})">SymmetricExceptWith(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Modifies the current set so that it contains only elements that are present either in the current
<a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object or in the specified collection, but not both.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void SymmetricExceptWith(IEnumerable&lt;T&gt; other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">other</span></td>
<td><p>The collection to compare to the current <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_TryPredecessor__0__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.TryPredecessor(%600%2C%600%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2968">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_TryPredecessor_" data-uid="Lucene.Net.Support.TreeSet`1.TryPredecessor*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_TryPredecessor__0__0__" data-uid="Lucene.Net.Support.TreeSet`1.TryPredecessor(`0,`0@)">TryPredecessor(T, out T)</h4>
<div class="markdown level1 summary"><p>Find the strict predecessor of item in the sorted collection,
that is, the greatest item in the collection smaller than the item.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool TryPredecessor(T item, out T res)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The item to find the predecessor for.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">res</span></td>
<td><p>The predecessor, if any; otherwise the default value for T.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if item has a predecessor; otherwise false.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_TrySuccessor__0__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.TrySuccessor(%600%2C%600%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3015">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_TrySuccessor_" data-uid="Lucene.Net.Support.TreeSet`1.TrySuccessor*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_TrySuccessor__0__0__" data-uid="Lucene.Net.Support.TreeSet`1.TrySuccessor(`0,`0@)">TrySuccessor(T, out T)</h4>
<div class="markdown level1 summary"><p>Find the strict successor of item in the sorted collection,
that is, the least item in the collection greater than the supplied value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool TrySuccessor(T item, out T res)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The item to find the successor for.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">res</span></td>
<td><p>The successor, if any; otherwise the default value for T.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if item has a successor; otherwise false.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_TryWeakPredecessor__0__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.TryWeakPredecessor(%600%2C%600%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3063">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_TryWeakPredecessor_" data-uid="Lucene.Net.Support.TreeSet`1.TryWeakPredecessor*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_TryWeakPredecessor__0__0__" data-uid="Lucene.Net.Support.TreeSet`1.TryWeakPredecessor(`0,`0@)">TryWeakPredecessor(T, out T)</h4>
<div class="markdown level1 summary"><p>Find the weak predecessor of item in the sorted collection,
that is, the greatest item in the collection smaller than or equal to the item.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool TryWeakPredecessor(T item, out T res)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The item to find the weak predecessor for.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">res</span></td>
<td><p>The weak predecessor, if any; otherwise the default value for T.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if item has a weak predecessor; otherwise false.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_TryWeakSuccessor__0__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.TryWeakSuccessor(%600%2C%600%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3106">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_TryWeakSuccessor_" data-uid="Lucene.Net.Support.TreeSet`1.TryWeakSuccessor*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_TryWeakSuccessor__0__0__" data-uid="Lucene.Net.Support.TreeSet`1.TryWeakSuccessor(`0,`0@)">TryWeakSuccessor(T, out T)</h4>
<div class="markdown level1 summary"><p>Find the weak successor of item in the sorted collection,
that is, the least item in the collection greater than or equal to the supplied value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool TryWeakSuccessor(T item, out T res)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The item to find the weak successor for.</p>
</td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">res</span></td>
<td><p>The weak successor, if any; otherwise the default value for T.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if item has a weak successor; otherwise false.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_UnionWith_System_Collections_Generic_IEnumerable__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.UnionWith(System.Collections.Generic.IEnumerable%7B%600%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L557">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_UnionWith_" data-uid="Lucene.Net.Support.TreeSet`1.UnionWith*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_UnionWith_System_Collections_Generic_IEnumerable__0__" data-uid="Lucene.Net.Support.TreeSet`1.UnionWith(System.Collections.Generic.IEnumerable{`0})">UnionWith(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Modifies the current <a class="xref" href="Lucene.Net.Support.TreeSet-1.html">TreeSet&lt;T&gt;</a> object to contain all elements that are present in itself, the specified collection, or both.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual void UnionWith(IEnumerable&lt;T&gt; other)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;T&gt;</td>
<td><span class="parametername">other</span></td>
<td><p>The collection to compare to the current set.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_UniqueItems.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.UniqueItems%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2365">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_UniqueItems_" data-uid="Lucene.Net.Support.TreeSet`1.UniqueItems*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_UniqueItems" data-uid="Lucene.Net.Support.TreeSet`1.UniqueItems">UniqueItems()</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public virtual ICollectionValue&lt;T&gt; UniqueItems()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html">ICollectionValue</a>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Update__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Update(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1585">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Update_" data-uid="Lucene.Net.Support.TreeSet`1.Update*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Update__0_" data-uid="Lucene.Net.Support.TreeSet`1.Update(`0)">Update(T)</h4>
<div class="markdown level1 summary"><p>Check if this collection contains an item equivalent according to the
itemequalityComparer to a particular value. If so, update the item in the collection
to with a binary copy of the supplied value. If the collection has bag semantics,
this updates all equivalent copies in
the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Update(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>Value to update.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if the item was found and hence updated.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Update__0__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Update(%600%2C%600%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1601">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Update_" data-uid="Lucene.Net.Support.TreeSet`1.Update*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Update__0__0__" data-uid="Lucene.Net.Support.TreeSet`1.Update(`0,`0@)">Update(T, out T)</h4>
<div class="markdown level1 summary"><p>Check if this collection contains an item equivalent according to the
itemequalityComparer to a particular value. If so, update the item in the collection
with a binary copy of the supplied value. If the collection has bag semantics,
this updates all equivalent copies in
the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool Update(T item, out T olditem)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">olditem</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_UpdateOrAdd__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.UpdateOrAdd(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1657">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_UpdateOrAdd_" data-uid="Lucene.Net.Support.TreeSet`1.UpdateOrAdd*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_UpdateOrAdd__0_" data-uid="Lucene.Net.Support.TreeSet`1.UpdateOrAdd(`0)">UpdateOrAdd(T)</h4>
<div class="markdown level1 summary"><p>Check if this collection contains an item equivalent according to the
itemequalityComparer to a particular value. If so, update the item in the collection
with a binary copy of the supplied value; else add the value to the collection. </p>
<p><em>NOTE: the bag implementation is currently wrong! ?????</em></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool UpdateOrAdd(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>Value to add or update.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><p>True if the item was found and updated (hence not added).</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_UpdateOrAdd__0__0__.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.UpdateOrAdd(%600%2C%600%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1666">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_UpdateOrAdd_" data-uid="Lucene.Net.Support.TreeSet`1.UpdateOrAdd*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_UpdateOrAdd__0__0__" data-uid="Lucene.Net.Support.TreeSet`1.UpdateOrAdd(`0,`0@)">UpdateOrAdd(T, out T)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public bool UpdateOrAdd(T item, out T olditem)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">olditem</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_WeakPredecessor__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.WeakPredecessor(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3169">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_WeakPredecessor_" data-uid="Lucene.Net.Support.TreeSet`1.WeakPredecessor*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_WeakPredecessor__0_" data-uid="Lucene.Net.Support.TreeSet`1.WeakPredecessor(`0)">WeakPredecessor(T)</h4>
<div class="markdown level1 summary"><p>Find the weak predecessor in the sorted collection of a particular value,
i.e. the largest item in the collection less than or equal to the supplied value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public T WeakPredecessor(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The item to find the weak predecessor for.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>The weak predecessor.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Condition</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.NoSuchItemException.html">NoSuchItemException</a></td>
<td><p>if no such element exists (the
supplied value is less than the minimum of this collection.)</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_WeakSuccessor__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.WeakSuccessor(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3205">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_WeakSuccessor_" data-uid="Lucene.Net.Support.TreeSet`1.WeakSuccessor*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_WeakSuccessor__0_" data-uid="Lucene.Net.Support.TreeSet`1.WeakSuccessor(`0)">WeakSuccessor(T)</h4>
<div class="markdown level1 summary"><p>Find the weak successor in the sorted collection of a particular value,
i.e. the least item in the collection greater than or equal to the supplied value.
<a class="xref" href="Lucene.Net.Support.C5.NoSuchItemException.html">NoSuchItemException</a></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public T WeakSuccessor(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The item to find the weak successor for.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><p>The weak successor.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="eii">Explicit Interface Implementations
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Lucene_Net_Support_C5_IDirectedEnumerable_T__Backwards.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Lucene%23Net%23Support%23C5%23IDirectedEnumerable%7BT%7D%23Backwards%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L2812">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Lucene_Net_Support_C5_IDirectedEnumerable_T__Backwards_" data-uid="Lucene.Net.Support.TreeSet`1.Lucene#Net#Support#C5#IDirectedEnumerable{T}#Backwards*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Lucene_Net_Support_C5_IDirectedEnumerable_T__Backwards" data-uid="Lucene.Net.Support.TreeSet`1.Lucene#Net#Support#C5#IDirectedEnumerable{T}#Backwards">IDirectedEnumerable&lt;T&gt;.Backwards()</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IDirectedEnumerable&lt;T&gt; IDirectedEnumerable&lt;T&gt;.Backwards()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.IDirectedEnumerable-1.html">IDirectedEnumerable</a>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Lucene_Net_Support_C5_ISorted_T__RangeFrom__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Lucene%23Net%23Support%23C5%23ISorted%7BT%7D%23RangeFrom(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3267">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Lucene_Net_Support_C5_ISorted_T__RangeFrom_" data-uid="Lucene.Net.Support.TreeSet`1.Lucene#Net#Support#C5#ISorted{T}#RangeFrom*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Lucene_Net_Support_C5_ISorted_T__RangeFrom__0_" data-uid="Lucene.Net.Support.TreeSet`1.Lucene#Net#Support#C5#ISorted{T}#RangeFrom(`0)">ISorted&lt;T&gt;.RangeFrom(T)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IDirectedEnumerable&lt;T&gt; ISorted&lt;T&gt;.RangeFrom(T bot)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">bot</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.IDirectedEnumerable-1.html">IDirectedEnumerable</a>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Lucene_Net_Support_C5_ISorted_T__RangeFromTo__0__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Lucene%23Net%23Support%23C5%23ISorted%7BT%7D%23RangeFromTo(%600%2C%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3270">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Lucene_Net_Support_C5_ISorted_T__RangeFromTo_" data-uid="Lucene.Net.Support.TreeSet`1.Lucene#Net#Support#C5#ISorted{T}#RangeFromTo*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Lucene_Net_Support_C5_ISorted_T__RangeFromTo__0__0_" data-uid="Lucene.Net.Support.TreeSet`1.Lucene#Net#Support#C5#ISorted{T}#RangeFromTo(`0,`0)">ISorted&lt;T&gt;.RangeFromTo(T, T)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IDirectedEnumerable&lt;T&gt; ISorted&lt;T&gt;.RangeFromTo(T bot, T top)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">bot</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">top</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.IDirectedEnumerable-1.html">IDirectedEnumerable</a>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_Lucene_Net_Support_C5_ISorted_T__RangeTo__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.Lucene%23Net%23Support%23C5%23ISorted%7BT%7D%23RangeTo(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L3273">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_Lucene_Net_Support_C5_ISorted_T__RangeTo_" data-uid="Lucene.Net.Support.TreeSet`1.Lucene#Net#Support#C5#ISorted{T}#RangeTo*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_Lucene_Net_Support_C5_ISorted_T__RangeTo__0_" data-uid="Lucene.Net.Support.TreeSet`1.Lucene#Net#Support#C5#ISorted{T}#RangeTo(`0)">ISorted&lt;T&gt;.RangeTo(T)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">IDirectedEnumerable&lt;T&gt; ISorted&lt;T&gt;.RangeTo(T top)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">top</span></td>
<td></td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Lucene.Net.Support.C5.IDirectedEnumerable-1.html">IDirectedEnumerable</a>&lt;T&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1_System_Collections_Generic_ICollection_T__Add__0_.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601.System%23Collections%23Generic%23ICollection%7BT%7D%23Add(%600)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L1259">View Source</a>
</span>
<a id="Lucene_Net_Support_TreeSet_1_System_Collections_Generic_ICollection_T__Add_" data-uid="Lucene.Net.Support.TreeSet`1.System#Collections#Generic#ICollection{T}#Add*"></a>
<h4 id="Lucene_Net_Support_TreeSet_1_System_Collections_Generic_ICollection_T__Add__0_" data-uid="Lucene.Net.Support.TreeSet`1.System#Collections#Generic#ICollection{T}#Add(`0)">ICollection&lt;T&gt;.Add(T)</h4>
<div class="markdown level1 summary"><p>Add an item to this collection if possible. If this collection has set
semantics, the item will be added if not already in the collection. If
bag semantics, the item will always be added.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">void ICollection&lt;T&gt;.Add(T item)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">T</span></td>
<td><span class="parametername">item</span></td>
<td><p>The item to add.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="implements">Implements</h3>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IIndexedSorted-1.html">IIndexedSorted&lt;T&gt;</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IIndexed-1.html">IIndexed&lt;T&gt;</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IReadOnlyList-1.html">IReadOnlyList&lt;T&gt;</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IReadOnlyCollection-1.html">IReadOnlyCollection&lt;T&gt;</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IPersistentSorted-1.html">IPersistentSorted&lt;T&gt;</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ISorted-1.html">ISorted&lt;T&gt;</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ISequenced-1.html">ISequenced&lt;T&gt;</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollection-1.html">ICollection&lt;T&gt;</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IExtensible-1.html">IExtensible&lt;T&gt;</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDirectedCollectionValue-1.html">IDirectedCollectionValue&lt;T&gt;</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.ICollectionValue-1.html">ICollectionValue&lt;T&gt;</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IShowable.html">IShowable</a>
</div>
<div>
<span class="xref">System.IFormattable</span>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.C5.IDirectedEnumerable-1.html">IDirectedEnumerable&lt;T&gt;</a>
</div>
<div>
<span class="xref">System.IDisposable</span>
</div>
<div>
<span class="xref">System.Collections.Generic.ISet&lt;T&gt;</span>
</div>
<div>
<span class="xref">System.Collections.Generic.ICollection&lt;T&gt;</span>
</div>
<div>
<span class="xref">System.Collections.Generic.IEnumerable&lt;T&gt;</span>
</div>
<div>
<span class="xref">System.Collections.IEnumerable</span>
</div>
<h3 id="extensionmethods">Extension Methods</h3>
<div>
<a class="xref" href="Lucene.Net.Support.EnumerableExtensions.html#Lucene_Net_Support_EnumerableExtensions_InPairs__2_System_Collections_Generic_IEnumerable___0__System_Func___0___0___1__">EnumerableExtensions.InPairs&lt;T, TOut&gt;(IEnumerable&lt;T&gt;, Func&lt;T, T, TOut&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.EnumerableExtensions.html#Lucene_Net_Support_EnumerableExtensions_TakeAllButLast__1_System_Collections_Generic_IEnumerable___0__">EnumerableExtensions.TakeAllButLast&lt;T&gt;(IEnumerable&lt;T&gt;)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.EnumerableExtensions.html#Lucene_Net_Support_EnumerableExtensions_TakeAllButLast__1_System_Collections_Generic_IEnumerable___0__System_Int32_">EnumerableExtensions.TakeAllButLast&lt;T&gt;(IEnumerable&lt;T&gt;, Int32)</a>
</div>
<div>
<a class="xref" href="Lucene.Net.Support.SetExtensions.html#Lucene_Net_Support_SetExtensions_RemoveAll__1_System_Collections_Generic_ICollection___0__System_Collections_Generic_IEnumerable___0__">SetExtensions.RemoveAll&lt;T&gt;(ICollection&lt;T&gt;, IEnumerable&lt;T&gt;)</a>
</div>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<div class="contribution">
<ul class="nav">
<li>
<a href="https://github.com/apache/lucenenet/new/docs-4.8.0-beta00007/websites/apidocs/apiSpec/new?filename=Lucene_Net_Support_TreeSet_1.md&amp;value=---%0Auid%3A%20Lucene.Net.Support.TreeSet%601%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
</li>
<li>
<a href="https://github.com/Shazwazza/lucenenet/blob/docs-update-jan2020/src/Lucene.Net/Support/TreeSet.cs/#L44" class="contribution-link">View Source</a>
</li>
</ul>
</div>
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
Copyright © 2020 Licensed to the Apache Software Foundation (ASF)
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
<script type="text/javascript" src="../../styles/docfx.js"></script>
<script type="text/javascript" src="../../styles/main.js"></script>
</body>
</html>