Class Collections
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public static class Collections : object
Methods
Name | Description |
---|---|
AddAll<T>(ISet<T>, IEnumerable<T>) | |
EmptyList<T>() | |
EmptyMap<TKey, TValue>() | |
Equals(Object, Object) | A helper method to recursively determine equality based on the values of the collection and all nested collections.
Note this operation currently only supports |
Equals<T>(IList<T>, IList<T>) | The same implementation of Equals from Java's AbstractList (the default implementation for all lists) This algorithm depends on the order of the items in the list. It is recursive and will determine equality based on the values of all nested collections.
Note this operation currently only supports |
Equals<T>(ISet<T>, ISet<T>) | The same implementation of Equals from Java's AbstractSet (the default implementation for all sets) This algoritm does not depend on the order of the items in the set. It is recursive and will determine equality based on the values of all nested collections.
Note this operation currently only supports |
Equals<TKey, TValue>(IDictionary<TKey, TValue>, IDictionary<TKey, TValue>) | This is the same implemenation of Equals from Java's AbstractMap (the default implementation of all dictionaries) This algoritm does not depend on the order of the items in the dictionary. It is recursive and will determine equality based on the values of all nested collections.
Note this operation currently only supports |
GetHashCode(Object) | This method generally assists with the recursive GetHashCode() that builds a hash code based on all of the values in a collection including any nested collections (lists, sets, arrays, and dictionaries).
Note this currently only supports |
GetHashCode<T>(IList<T>) | The same implementation of GetHashCode from Java's AbstractList (the default implementation for all lists). This algorithm depends on the order of the items in the list. It is recursive and will build the hash code based on the values of all nested collections.
Note this operation currently only supports |
GetHashCode<T>(ISet<T>) | The same implementation of GetHashCode from Java's AbstractSet (the default implementation for all sets) This algorithm does not depend on the order of the items in the set. It is recursive and will build the hash code based on the values of all nested collections.
Note this operation currently only supports |
GetHashCode<TKey, TValue>(IDictionary<TKey, TValue>) | The same implementation of GetHashCode from Java's AbstractMap (the default implementation for all dictionaries) This algoritm does not depend on the order of the items in the dictionary. It is recursive and will build the hash code based on the values of all nested collections.
Note this operation currently only supports |
NewSetFromMap<T, S>(IDictionary<T, Nullable<Boolean>>) | |
Reverse<T>(IList<T>) | |
ReverseOrder<T>() | |
ReverseOrder<T>(IComparer<T>) | |
Shuffle<T>(IList<T>) | |
Shuffle<T>(IList<T>, Random) | |
Singleton<T>(T) | |
SingletonMap<TKey, TValue>(TKey, TValue) | |
Swap<T>(IList<T>, Int32, Int32) | |
ToString(Object) | This is a helper method that assists with recursively building a string of the current collection and all nested collections. |
ToString(Object, CultureInfo) | This is a helper method that assists with recursively building a string of the current collection and all nested collections, plus the ability to specify culture for formatting of nested numbers and dates. Note that this overload will change the culture of the current thread. |
ToString<T>(ICollection<T>) | This is the same implementation of ToString from Java's AbstractCollection (the default implementation for all sets and lists) |
ToString<T>(ICollection<T>, CultureInfo) | This is the same implementation of ToString from Java's AbstractCollection (the default implementation for all sets and lists), plus the ability to specify culture for formatting of nested numbers and dates. Note that this overload will change the culture of the current thread. |
ToString<TKey, TValue>(IDictionary<TKey, TValue>) | This is the same implementation of ToString from Java's AbstractMap (the default implementation for all dictionaries) |
ToString<TKey, TValue>(IDictionary<TKey, TValue>, CultureInfo) | This is the same implementation of ToString from Java's AbstractMap (the default implementation for all dictionaries), plus the ability to specify culture for formatting of nested numbers and dates. Note that this overload will change the culture of the current thread. |
UnmodifiableList<T>(IList<T>) | |
UnmodifiableMap<TKey, TValue>(IDictionary<TKey, TValue>) | |
UnmodifiableSet<T>(ISet<T>) |