blob: b3a227a1f930bdf9c570ac2a079d419ab1236f6f [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>Lucene.Net: Lucene.Net.Analysis.CharArraySet Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="lucene-net-icon-128x128.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Lucene.Net
&#160;<span id="projectnumber">3.0.3</span>
</div>
<div id="projectbrief">Lucene.Net is a .NET port of the Java Lucene Indexing Library</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="Index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Packages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Properties</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespace_lucene.html">Lucene</a></li><li class="navelem"><a class="el" href="namespace_lucene_1_1_net.html">Net</a></li><li class="navelem"><a class="el" href="namespace_lucene_1_1_net_1_1_analysis.html">Analysis</a></li><li class="navelem"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html">CharArraySet</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Lucene.Net.Analysis.CharArraySet Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A simple class that stores Strings as char[]'s in a hash table. Note that this is not a general purpose class. For example, it cannot remove items from the set, nor does it resize its hash table to be smaller, etc. It is designed to be quick to test if a char[] is in the set without the necessity of converting it to a String first. <em>Please note:</em> This class implements System.Collections.Generic.ISet{T} but does not behave like it should in all cases. The generic type is System.Collections.Generic.ICollection{T}, because you can add any object to it, that has a string representation. The add methods will use object.ToString() and store the result using a char buffer. The same behaviour have the <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#abf77beb45c6427764f938f1e761450d9">Contains(object)</a> methods. The <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#ac21aaba3d60121ebd7c4acd140bae9bd">GetEnumerator</a> method returns an string IEnumerable. For type safety also <a class="el" href="">stringIterator()</a> is provided.
<a href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#details">More...</a></p>
<p>Inherits ISet&lt; string &gt;.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set_1_1_char_array_set_enumerator.html">CharArraySetEnumerator</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The IEnumerator&lt;String&gt; for this set. Strings are constructed on the fly, so use <code>nextCharArray</code> for more efficient access <a href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set_1_1_char_array_set_enumerator.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ade79b82a70a339bd80ec6945c001776b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#ade79b82a70a339bd80ec6945c001776b">CharArraySet</a> (int startSize, bool ignoreCase)</td></tr>
<tr class="memdesc:ade79b82a70a339bd80ec6945c001776b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create set with enough capacity to hold startSize terms <a href="#ade79b82a70a339bd80ec6945c001776b"></a><br/></td></tr>
<tr class="separator:ade79b82a70a339bd80ec6945c001776b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec4c9029c988dc2a5702149056ea2348"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#aec4c9029c988dc2a5702149056ea2348">CharArraySet</a> (IEnumerable&lt; string &gt; c, bool ignoreCase)</td></tr>
<tr class="separator:aec4c9029c988dc2a5702149056ea2348"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af60fe026d6ccf60c5ad31749d8bceff8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#af60fe026d6ccf60c5ad31749d8bceff8">CharArraySet</a> (IEnumerable&lt; object &gt; c, bool ignoreCase)</td></tr>
<tr class="memdesc:af60fe026d6ccf60c5ad31749d8bceff8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create set from a Collection of char[] or String <a href="#af60fe026d6ccf60c5ad31749d8bceff8"></a><br/></td></tr>
<tr class="separator:af60fe026d6ccf60c5ad31749d8bceff8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a654c0053bd00afb1d703fcf4bf44fce1"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a654c0053bd00afb1d703fcf4bf44fce1">Contains</a> (char[] text, int off, int len)</td></tr>
<tr class="memdesc:a654c0053bd00afb1d703fcf4bf44fce1"><td class="mdescLeft">&#160;</td><td class="mdescRight">true if the <code>len</code> chars of <code>text</code> starting at <code>off</code> are in the set <a href="#a654c0053bd00afb1d703fcf4bf44fce1"></a><br/></td></tr>
<tr class="separator:a654c0053bd00afb1d703fcf4bf44fce1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ff83c0b358aecafa3bf0f75bea83d1b"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a0ff83c0b358aecafa3bf0f75bea83d1b">Contains</a> (string text)</td></tr>
<tr class="separator:a0ff83c0b358aecafa3bf0f75bea83d1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3811b34121c90a4f4252e5de57b47d6a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a3811b34121c90a4f4252e5de57b47d6a">Add</a> (string text)</td></tr>
<tr class="separator:a3811b34121c90a4f4252e5de57b47d6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b4b7093863ca99d06fa9699b130cad3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a2b4b7093863ca99d06fa9699b130cad3">Add</a> (char[] text)</td></tr>
<tr class="memdesc:a2b4b7093863ca99d06fa9699b130cad3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add this char[] directly to the set. If ignoreCase is true for this Set, the text array will be directly modified. The user should never modify this text array after calling this method. <a href="#a2b4b7093863ca99d06fa9699b130cad3"></a><br/></td></tr>
<tr class="separator:a2b4b7093863ca99d06fa9699b130cad3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf77beb45c6427764f938f1e761450d9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#abf77beb45c6427764f938f1e761450d9">Contains</a> (object item)</td></tr>
<tr class="separator:abf77beb45c6427764f938f1e761450d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25ba92980c7bfa7a1d79667e7ec26408"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a25ba92980c7bfa7a1d79667e7ec26408">Add</a> (object item)</td></tr>
<tr class="separator:a25ba92980c7bfa7a1d79667e7ec26408"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fcb9e1da57074138f97378c0d08f72a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a5fcb9e1da57074138f97378c0d08f72a">Clear</a> ()</td></tr>
<tr class="separator:a5fcb9e1da57074138f97378c0d08f72a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11e643a99f7dbd070a2093049469f3bc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a11e643a99f7dbd070a2093049469f3bc">UnionWith</a> (IEnumerable&lt; string &gt; other)</td></tr>
<tr class="memdesc:a11e643a99f7dbd070a2093049469f3bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds all of the elements in the specified collection to this collection <a href="#a11e643a99f7dbd070a2093049469f3bc"></a><br/></td></tr>
<tr class="separator:a11e643a99f7dbd070a2093049469f3bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a057313c663b0d5ec196e40528d7470e5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a057313c663b0d5ec196e40528d7470e5">AddAll</a> (IEnumerable&lt; string &gt; coll)</td></tr>
<tr class="memdesc:a057313c663b0d5ec196e40528d7470e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper that calls UnionWith <a href="#a057313c663b0d5ec196e40528d7470e5"></a><br/></td></tr>
<tr class="separator:a057313c663b0d5ec196e40528d7470e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10c66ec3d507676c3319b5ed9e1fa2e1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a10c66ec3d507676c3319b5ed9e1fa2e1">RemoveAll</a> (ICollection&lt; string &gt; c)</td></tr>
<tr class="separator:a10c66ec3d507676c3319b5ed9e1fa2e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39ef62b2090c2429d8ca6f3776fdf51e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a39ef62b2090c2429d8ca6f3776fdf51e">RetainAll</a> (ICollection&lt; string &gt; c)</td></tr>
<tr class="separator:a39ef62b2090c2429d8ca6f3776fdf51e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72413dad425cf706420a7ca97dfc4c5e"><td class="memItemLeft" align="right" valign="top">IEnumerator&lt; string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a72413dad425cf706420a7ca97dfc4c5e">StringEnumerator</a> ()</td></tr>
<tr class="separator:a72413dad425cf706420a7ca97dfc4c5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac21aaba3d60121ebd7c4acd140bae9bd"><td class="memItemLeft" align="right" valign="top">IEnumerator&lt; string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#ac21aaba3d60121ebd7c4acd140bae9bd">GetEnumerator</a> ()</td></tr>
<tr class="separator:ac21aaba3d60121ebd7c4acd140bae9bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a044a75a96e08ce42d40f81f4f160c4e6"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html">CharArraySet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a044a75a96e08ce42d40f81f4f160c4e6">UnmodifiableSet</a> (<a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html">CharArraySet</a> set)</td></tr>
<tr class="memdesc:a044a75a96e08ce42d40f81f4f160c4e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an unmodifiable <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html" title="A simple class that stores Strings as char[]&#39;s in a hash table. Note that this is not a general purpo...">CharArraySet</a>. This allows to provide unmodifiable views of internal sets for "read-only" use <a href="#a044a75a96e08ce42d40f81f4f160c4e6"></a><br/></td></tr>
<tr class="separator:a044a75a96e08ce42d40f81f4f160c4e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f2ca8446dc5f0a9cdbacf570ca893a3"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html">CharArraySet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a9f2ca8446dc5f0a9cdbacf570ca893a3">Copy&lt; T &gt;</a> (ISet&lt; T &gt; set)</td></tr>
<tr class="memdesc:a9f2ca8446dc5f0a9cdbacf570ca893a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns a copy of the given set as a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html" title="A simple class that stores Strings as char[]&#39;s in a hash table. Note that this is not a general purpo...">CharArraySet</a>. If the given set is a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html" title="A simple class that stores Strings as char[]&#39;s in a hash table. Note that this is not a general purpo...">CharArraySet</a> the ignoreCase property will be preserved. <a href="#a9f2ca8446dc5f0a9cdbacf570ca893a3"></a><br/></td></tr>
<tr class="separator:a9f2ca8446dc5f0a9cdbacf570ca893a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:aac7c9b8431a06e4226b10f7123da1eb8"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html">CharArraySet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#aac7c9b8431a06e4226b10f7123da1eb8">EMPTY_SET</a> = <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a044a75a96e08ce42d40f81f4f160c4e6">UnmodifiableSet</a>(new <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html">CharArraySet</a>(0, false))</td></tr>
<tr class="separator:aac7c9b8431a06e4226b10f7123da1eb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a445174f19586851d06a2c5755471a8c8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a445174f19586851d06a2c5755471a8c8">Count</a><code> [get]</code></td></tr>
<tr class="separator:a445174f19586851d06a2c5755471a8c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a0989041a2bc895f416ca668b7b7981"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a7a0989041a2bc895f416ca668b7b7981">IsEmpty</a><code> [get]</code></td></tr>
<tr class="separator:a7a0989041a2bc895f416ca668b7b7981"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64c20a9efc154f1062de1e9a56d29ef1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a64c20a9efc154f1062de1e9a56d29ef1">IsReadOnly</a><code> [get, set]</code></td></tr>
<tr class="separator:a64c20a9efc154f1062de1e9a56d29ef1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A simple class that stores Strings as char[]'s in a hash table. Note that this is not a general purpose class. For example, it cannot remove items from the set, nor does it resize its hash table to be smaller, etc. It is designed to be quick to test if a char[] is in the set without the necessity of converting it to a String first. </p>
<p><em>Please note:</em> This class implements System.Collections.Generic.ISet{T} but does not behave like it should in all cases. The generic type is System.Collections.Generic.ICollection{T}, because you can add any object to it, that has a string representation. The add methods will use object.ToString() and store the result using a char buffer. The same behaviour have the <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#abf77beb45c6427764f938f1e761450d9">Contains(object)</a> methods. The <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#ac21aaba3d60121ebd7c4acd140bae9bd">GetEnumerator</a> method returns an string IEnumerable. For type safety also <a class="el" href="">stringIterator()</a> is provided. </p>
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00046">46</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ade79b82a70a339bd80ec6945c001776b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Analysis.CharArraySet.CharArraySet </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>startSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>ignoreCase</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create set with enough capacity to hold startSize terms </p>
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00067">67</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="aec4c9029c988dc2a5702149056ea2348"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Analysis.CharArraySet.CharArraySet </td>
<td>(</td>
<td class="paramtype">IEnumerable&lt; string &gt;&#160;</td>
<td class="paramname"><em>c</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>ignoreCase</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00072">72</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="af60fe026d6ccf60c5ad31749d8bceff8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Lucene.Net.Analysis.CharArraySet.CharArraySet </td>
<td>(</td>
<td class="paramtype">IEnumerable&lt; object &gt;&#160;</td>
<td class="paramname"><em>c</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>ignoreCase</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create set from a Collection of char[] or String </p>
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00079">79</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a3811b34121c90a4f4252e5de57b47d6a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Lucene.Net.Analysis.CharArraySet.Add </td>
<td>(</td>
<td class="paramtype">string&#160;</td>
<td class="paramname"><em>text</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00154">154</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a2b4b7093863ca99d06fa9699b130cad3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Lucene.Net.Analysis.CharArraySet.Add </td>
<td>(</td>
<td class="paramtype">char[]&#160;</td>
<td class="paramname"><em>text</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add this char[] directly to the set. If ignoreCase is true for this Set, the text array will be directly modified. The user should never modify this text array after calling this method. </p>
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00164">164</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a25ba92980c7bfa7a1d79667e7ec26408"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Lucene.Net.Analysis.CharArraySet.Add </td>
<td>(</td>
<td class="paramtype">object&#160;</td>
<td class="paramname"><em>item</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00307">307</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a057313c663b0d5ec196e40528d7470e5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Lucene.Net.Analysis.CharArraySet.AddAll </td>
<td>(</td>
<td class="paramtype">IEnumerable&lt; string &gt;&#160;</td>
<td class="paramname"><em>coll</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Wrapper that calls UnionWith</p>
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00379">379</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a5fcb9e1da57074138f97378c0d08f72a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Lucene.Net.Analysis.CharArraySet.Clear </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00356">356</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a654c0053bd00afb1d703fcf4bf44fce1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool Lucene.Net.Analysis.CharArraySet.Contains </td>
<td>(</td>
<td class="paramtype">char[]&#160;</td>
<td class="paramname"><em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>off</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>len</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>true if the <code>len</code> chars of <code>text</code> starting at <code>off</code> are in the set </p>
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00104">104</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a0ff83c0b358aecafa3bf0f75bea83d1b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool Lucene.Net.Analysis.CharArraySet.Contains </td>
<td>(</td>
<td class="paramtype">string&#160;</td>
<td class="paramname"><em>text</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00109">109</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="abf77beb45c6427764f938f1e761450d9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Lucene.Net.Analysis.CharArraySet.Contains </td>
<td>(</td>
<td class="paramtype">object&#160;</td>
<td class="paramname"><em>item</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00301">301</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a9f2ca8446dc5f0a9cdbacf570ca893a3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html">CharArraySet</a> Lucene.Net.Analysis.CharArraySet.Copy&lt; T &gt; </td>
<td>(</td>
<td class="paramtype">ISet&lt; T &gt;&#160;</td>
<td class="paramname"><em>set</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>returns a copy of the given set as a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html" title="A simple class that stores Strings as char[]&#39;s in a hash table. Note that this is not a general purpo...">CharArraySet</a>. If the given set is a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html" title="A simple class that stores Strings as char[]&#39;s in a hash table. Note that this is not a general purpo...">CharArraySet</a> the ignoreCase property will be preserved. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">set</td><td>A set to copy</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a copy of the given set as a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html" title="A simple class that stores Strings as char[]&#39;s in a hash table. Note that this is not a general purpo...">CharArraySet</a>. If the given set is a <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html" title="A simple class that stores Strings as char[]&#39;s in a hash table. Note that this is not a general purpo...">CharArraySet</a> the ignoreCase property will be preserved.</dd></dl>
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00344">344</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="ac21aaba3d60121ebd7c4acd140bae9bd"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">IEnumerator&lt;string&gt; Lucene.Net.Analysis.CharArraySet.GetEnumerator </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00506">506</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a10c66ec3d507676c3319b5ed9e1fa2e1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Lucene.Net.Analysis.CharArraySet.RemoveAll </td>
<td>(</td>
<td class="paramtype">ICollection&lt; string &gt;&#160;</td>
<td class="paramname"><em>c</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00385">385</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a39ef62b2090c2429d8ca6f3776fdf51e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Lucene.Net.Analysis.CharArraySet.RetainAll </td>
<td>(</td>
<td class="paramtype">ICollection&lt; string &gt;&#160;</td>
<td class="paramname"><em>c</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00390">390</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a72413dad425cf706420a7ca97dfc4c5e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">IEnumerator&lt;string&gt; Lucene.Net.Analysis.CharArraySet.StringEnumerator </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00501">501</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a11e643a99f7dbd070a2093049469f3bc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Lucene.Net.Analysis.CharArraySet.UnionWith </td>
<td>(</td>
<td class="paramtype">IEnumerable&lt; string &gt;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds all of the elements in the specified collection to this collection </p>
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00368">368</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a044a75a96e08ce42d40f81f4f160c4e6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html">CharArraySet</a> Lucene.Net.Analysis.CharArraySet.UnmodifiableSet </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html">CharArraySet</a>&#160;</td>
<td class="paramname"><em>set</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns an unmodifiable <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html" title="A simple class that stores Strings as char[]&#39;s in a hash table. Note that this is not a general purpo...">CharArraySet</a>. This allows to provide unmodifiable views of internal sets for "read-only" use </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">set</td><td>A Set for which the unmodifiable set it returns.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new unmodifiable <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html" title="A simple class that stores Strings as char[]&#39;s in a hash table. Note that this is not a general purpo...">CharArraySet</a></dd></dl>
<p>&lt;throws&gt;ArgumentNullException of the given set is <code>null</code>&lt;/throws&gt; </p>
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00324">324</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="aac7c9b8431a06e4226b10f7123da1eb8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html">CharArraySet</a> Lucene.Net.Analysis.CharArraySet.EMPTY_SET = <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html#a044a75a96e08ce42d40f81f4f160c4e6">UnmodifiableSet</a>(new <a class="el" href="class_lucene_1_1_net_1_1_analysis_1_1_char_array_set.html">CharArraySet</a>(0, false))</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00053">53</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="a445174f19586851d06a2c5755471a8c8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int Lucene.Net.Analysis.CharArraySet.Count</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00292">292</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a7a0989041a2bc895f416ca668b7b7981"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool Lucene.Net.Analysis.CharArraySet.IsEmpty</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00297">297</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<a class="anchor" id="a64c20a9efc154f1062de1e9a56d29ef1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool Lucene.Net.Analysis.CharArraySet.IsReadOnly</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="_char_array_set_8cs_source.html#l00362">362</a> of file <a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>core/Analysis/<a class="el" href="_char_array_set_8cs_source.html">CharArraySet.cs</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 3 2013 02:12:47 for Lucene.Net by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3
</small></address>
</body>
</html>