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<T> rather than System.Collections.Generic.ISet<T> 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<T>, and while there is no EntrySet() method
or property in .NET, if there were it would certainly return System.Collections.Generic.ICollection<T>.
Inheritance
System.Object
CharArrayMap<TValue>.EntrySet_
Implements
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, TValue>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, TValue>>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class EntrySet_ : ICollection<KeyValuePair<string, TValue>>, IEnumerable<KeyValuePair<string, TValue>>, IEnumerable
Properties
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
Add(KeyValuePair<String, TValue>)
Declaration
public void Add(KeyValuePair<string, TValue> item)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<System.String, TValue> |
item |
|
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
Contains(Object)
Declaration
public bool Contains(object o)
Parameters
Type |
Name |
Description |
System.Object |
o |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CopyTo(KeyValuePair<String, TValue>[], Int32)
Declaration
public void CopyTo(KeyValuePair<string, TValue>[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
System.Collections.Generic.KeyValuePair<System.String, TValue>[] |
array |
|
System.Int32 |
arrayIndex |
|
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Explicit Interface Implementations
|
Improve this Doc
View Source
IEnumerable<KeyValuePair<String, TValue>>.GetEnumerator()
Declaration
IEnumerator<KeyValuePair<string, TValue>> IEnumerable<KeyValuePair<string, TValue>>.GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, TValue>> |
|
Implements
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable