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
rather than 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 , and while there is no EntrySet() method
or property in .NET, if there were it would certainly return .
Inheritance
System.Object
CharArrayMap<TValue>.EntrySet_
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class EntrySet_ : ICollection<KeyValuePair<string, TValue>>
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 |
KeyValuePair<System.String, TValue> |
item |
|
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
Contains(KeyValuePair<String, TValue>)
Declaration
public bool Contains(KeyValuePair<string, TValue> item)
Parameters
Type |
Name |
Description |
KeyValuePair<System.String, TValue> |
item |
|
Returns
Type |
Description |
System.Boolean |
|
|
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 |
KeyValuePair<System.String, TValue>[] |
array |
|
System.Int32 |
arrayIndex |
|
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator GetEnumerator()
Returns
Type |
Description |
IEnumerator |
|
|
Improve this Doc
View Source
Remove(KeyValuePair<String, TValue>)
Declaration
public bool Remove(KeyValuePair<string, TValue> item)
Parameters
Type |
Name |
Description |
KeyValuePair<System.String, TValue> |
item |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|