Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Static Public Member Functions | List of all members
Lucene.Net.Support.CollectionsHelper Class Reference

Support class used to handle Hashtable addition, which does a check first to make sure the added item is unique in the hash. More...

Static Public Member Functions

static void Add (System.Collections.Hashtable hashtable, System.Object item)
 
static void AddIfNotContains (System.Collections.Hashtable hashtable, System.Object item)
 
static void AddIfNotContains (System.Collections.ArrayList hashtable, System.Object item)
 
static void AddAll (System.Collections.Hashtable hashtable, System.Collections.ICollection items)
 
static void AddAllIfNotContains (System.Collections.Hashtable hashtable, System.Collections.IList items)
 
static void AddAllIfNotContains (System.Collections.Hashtable hashtable, System.Collections.ICollection items)
 
static void AddAllIfNotContains (System.Collections.Generic.IDictionary< string, string > hashtable, System.Collections.Generic.ICollection< string > items)
 
static void AddAll (System.Collections.Generic.IDictionary< string, string > hashtable, System.Collections.Generic.ICollection< string > items)
 
static bool Contains (System.Collections.Generic.ICollection< string > col, string item)
 
static bool Contains (System.Collections.ICollection col, System.Object item)
 
static System.String CollectionToString (System.Collections.Generic.IDictionary< string, string > c)
 
static System.String CollectionToString (System.Collections.ICollection c)
 Converts the specified collection to its string representation.
 
static bool CompareStringArrays (System.String[] l1, System.String[] l2)
 Compares two string arrays for equality.
 
static void Sort (System.Collections.IList list, System.Collections.IComparer Comparator)
 Sorts an IList collections
 
static void Fill (System.Array array, System.Int32 fromindex, System.Int32 toindex, System.Object val)
 Fills the array with an specific value from an specific index to an specific index.
 
static void Fill (System.Array array, System.Object val)
 Fills the array with an specific value.
 
static bool Equals (System.Array array1, System.Array array2)
 Compares the entire members of one array whith the other one.
 

Detailed Description

Support class used to handle Hashtable addition, which does a check first to make sure the added item is unique in the hash.

Definition at line 31 of file CollectionsHelper.cs.

Member Function Documentation

static void Lucene.Net.Support.CollectionsHelper.Add ( System.Collections.Hashtable  hashtable,
System.Object  item 
)
static

Definition at line 33 of file CollectionsHelper.cs.

static void Lucene.Net.Support.CollectionsHelper.AddAll ( System.Collections.Hashtable  hashtable,
System.Collections.ICollection  items 
)
static

Definition at line 67 of file CollectionsHelper.cs.

static void Lucene.Net.Support.CollectionsHelper.AddAll ( System.Collections.Generic.IDictionary< string, string >  hashtable,
System.Collections.Generic.ICollection< string >  items 
)
static

Definition at line 116 of file CollectionsHelper.cs.

static void Lucene.Net.Support.CollectionsHelper.AddAllIfNotContains ( System.Collections.Hashtable  hashtable,
System.Collections.IList  items 
)
static

Definition at line 78 of file CollectionsHelper.cs.

static void Lucene.Net.Support.CollectionsHelper.AddAllIfNotContains ( System.Collections.Hashtable  hashtable,
System.Collections.ICollection  items 
)
static

Definition at line 91 of file CollectionsHelper.cs.

static void Lucene.Net.Support.CollectionsHelper.AddAllIfNotContains ( System.Collections.Generic.IDictionary< string, string >  hashtable,
System.Collections.Generic.ICollection< string >  items 
)
static

Definition at line 105 of file CollectionsHelper.cs.

static void Lucene.Net.Support.CollectionsHelper.AddIfNotContains ( System.Collections.Hashtable  hashtable,
System.Object  item 
)
static

Definition at line 38 of file CollectionsHelper.cs.

static void Lucene.Net.Support.CollectionsHelper.AddIfNotContains ( System.Collections.ArrayList  hashtable,
System.Object  item 
)
static

Definition at line 55 of file CollectionsHelper.cs.

static System.String Lucene.Net.Support.CollectionsHelper.CollectionToString ( System.Collections.Generic.IDictionary< string, string >  c)
static

Definition at line 142 of file CollectionsHelper.cs.

static System.String Lucene.Net.Support.CollectionsHelper.CollectionToString ( System.Collections.ICollection  c)
static

Converts the specified collection to its string representation.

Parameters
cThe collection to convert to string.
Returns
A string representation of the specified collection.

Definition at line 157 of file CollectionsHelper.cs.

static bool Lucene.Net.Support.CollectionsHelper.CompareStringArrays ( System.String[]  l1,
System.String[]  l2 
)
static

Compares two string arrays for equality.

Parameters
l1First string array list to compare
l2Second string array list to compare
Returns
true if the strings are equal in both arrays, false otherwise

Definition at line 218 of file CollectionsHelper.cs.

static bool Lucene.Net.Support.CollectionsHelper.Contains ( System.Collections.Generic.ICollection< string >  col,
string  item 
)
static

Definition at line 124 of file CollectionsHelper.cs.

static bool Lucene.Net.Support.CollectionsHelper.Contains ( System.Collections.ICollection  col,
System.Object  item 
)
static

Definition at line 130 of file CollectionsHelper.cs.

static bool Lucene.Net.Support.CollectionsHelper.Equals ( System.Array  array1,
System.Array  array2 
)
static

Compares the entire members of one array whith the other one.

Parameters
array1The array to be compared.
array2The array to be compared with.
Returns
Returns true if the two specified arrays of Objects are equal to one another. The two arrays are considered equal if both arrays contain the same number of elements, and all corresponding pairs of elements in the two arrays are equal. Two objects e1 and e2 are considered equal if (e1==null ? e2==null : e1.equals(e2)). In other words, the two arrays are equal if they contain the same elements in the same order. Also, two array references are considered equal if both are null.

Definition at line 311 of file CollectionsHelper.cs.

static void Lucene.Net.Support.CollectionsHelper.Fill ( System.Array  array,
System.Int32  fromindex,
System.Int32  toindex,
System.Object  val 
)
static

Fills the array with an specific value from an specific index to an specific index.

Parameters
arrayThe array to be filled.
fromindexThe first index to be filled.
toindexThe last index to be filled.
valThe value to fill the array with.

Definition at line 271 of file CollectionsHelper.cs.

static void Lucene.Net.Support.CollectionsHelper.Fill ( System.Array  array,
System.Object  val 
)
static

Fills the array with an specific value.

Parameters
arrayThe array to be filled.
valThe value to fill the array with.

Definition at line 293 of file CollectionsHelper.cs.

static void Lucene.Net.Support.CollectionsHelper.Sort ( System.Collections.IList  list,
System.Collections.IComparer  Comparator 
)
static

Sorts an IList collections

Parameters
listThe System.Collections.IList instance that will be sorted
ComparatorThe Comparator criteria, null to use natural comparator.

Definition at line 235 of file CollectionsHelper.cs.


The documentation for this class was generated from the following file: