Class CharArrayMap<TValue>.EntrySet_
public EntrySet_ class so efficient methods are exposed to users
NOTE: In .NET this was renamed to EntrySet_ because it conflicted with the method EntrySet(). Since there is also an extension method named IDictionary{K,V}.EntrySet() that this class needs to override, changing the name of the method was not possible because the extension method would produce incorrect results if it were inadvertently called, leading to hard-to-diagnose bugs.
Another difference between this set and the Java counterpart is that it implements System.Collections.Generic.ICollection<> rather than System.Collections.Generic.ISet<> so we don't have to implement a bunch of methods that we aren't really interested in. The Keys and Values properties both return System.Collections.Generic.ICollection<>, and while there is no EntrySet() method or property in .NET, if there were it would certainly return System.Collections.Generic.ICollection<>.
Inheritance
Inherited Members
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public sealed class EntrySet_ : ICollection<KeyValuePair<string, TValue>>, IEnumerable<KeyValuePair<string, TValue>>, IEnumerable
Properties
Name | Description |
---|---|
Count | |
IsReadOnly |
Methods
Name | Description |
---|---|
Add(KeyValuePair<String, TValue>) | |
Clear() | |
Contains(Object) | |
CopyTo(KeyValuePair<String, TValue>[], Int32) | |
GetEnumerator() | |
ToString() |
Explicit Interface Implementations
Name | Description |
---|---|
IEnumerable<KeyValuePair<String, TValue>>.GetEnumerator() |