Class CharArraySet
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.
Please note: This class implements
Inheritance
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public class CharArraySet : ISet<string>
Constructors
Name | Description |
---|---|
CharArraySet(IEnumerable<Object>, Boolean) | Create set from a Collection of char[] or String |
CharArraySet(IEnumerable<String>, Boolean) | |
CharArraySet(Int32, Boolean) | Create set with enough capacity to hold startSize terms |
Fields
Name | Description |
---|---|
EMPTY_SET |
Properties
Name | Description |
---|---|
Count | |
IsEmpty | |
IsReadOnly |
Methods
Name | Description |
---|---|
Add(Char[]) | 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. |
Add(Object) | |
Add(String) | |
AddAll(IEnumerable<String>) | Wrapper that calls UnionWith |
Clear() | |
Contains(Char[], Int32, Int32) | true if the |
Contains(Object) | |
Contains(String) | |
Copy<T>(ISet<T>) | returns a copy of the given set as a CharArraySet. If the given set is a CharArraySet the ignoreCase property will be preserved. |
GetEnumerator() | |
RemoveAll(ICollection<String>) | |
RetainAll(ICollection<String>) | |
StringEnumerator() | |
UnionWith(IEnumerable<String>) | Adds all of the elements in the specified collection to this collection |
UnmodifiableSet(CharArraySet) | Returns an unmodifiable CharArraySet. This allows to provide unmodifiable views of internal sets for "read-only" use |