Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | Static Public Member Functions | List of all members
Lucene.Net.Support.EquatableList< T > Class Template Reference

Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists. Also provides functionality to compare lists against each other through an implementations of IEquatable{T}. More...

Inherits List< T >, IEquatable< System.Collections.Generic.IEnumerable< T >>, and ICloneable.

Public Member Functions

 EquatableList ()
 Initializes a new instance of the EquatableList{T} class that is empty and has the default initial capacity.
 
 EquatableList (System.Collections.Generic.IEnumerable< T > collection)
 Initializes a new instance of the EquatableList{T} class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied.
 
 EquatableList (int capacity)
 Initializes a new instance of the EquatableList{T} class that is empty and has the specified initial capacity.
 
void AddRange (ICollection c)
 Adds a range of objects represented by the ICollection implementation.
 
bool Equals (System.Collections.Generic.IEnumerable< T > other)
 Compares this sequence to another System.Collections.Generic.IEnumerable{T} implementation, returning true if they are equal, false otherwise.
 
override bool Equals (object obj)
 Compares this object for equality against other.
 
override int GetHashCode ()
 Gets the hash code for the list.
 
object Clone ()
 Clones the EquatableList{T}.
 

Static Public Member Functions

static int GetHashCode (System.Collections.Generic.IEnumerable< T > source)
 Gets the hash code for the list.
 

Detailed Description

Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists. Also provides functionality to compare lists against each other through an implementations of IEquatable{T}.

Template Parameters
TThe type of elements in the list.

Definition at line 34 of file EquatableList.cs.

Constructor & Destructor Documentation

Lucene.Net.Support.EquatableList< T >.EquatableList ( )

Initializes a new instance of the EquatableList{T} class that is empty and has the default initial capacity.

Definition at line 41 of file EquatableList.cs.

Lucene.Net.Support.EquatableList< T >.EquatableList ( System.Collections.Generic.IEnumerable< T >  collection)

Initializes a new instance of the EquatableList{T} class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied.

Parameters
collectionThe collection whose elements are copied to the new list.

Definition at line 47 of file EquatableList.cs.

Lucene.Net.Support.EquatableList< T >.EquatableList ( int  capacity)

Initializes a new instance of the EquatableList{T} class that is empty and has the specified initial capacity.

Parameters
capacityThe number of elements that the new list can initially store.

Definition at line 52 of file EquatableList.cs.

Member Function Documentation

void Lucene.Net.Support.EquatableList< T >.AddRange ( ICollection  c)

Adds a range of objects represented by the ICollection implementation.

Parameters
cThe ICollection implementation to add to this list.

Definition at line 58 of file EquatableList.cs.

object Lucene.Net.Support.EquatableList< T >.Clone ( )

Clones the EquatableList{T}.

This is a shallow clone.

Returns
A new shallow clone of this EquatableList{T}.

Definition at line 331 of file EquatableList.cs.

bool Lucene.Net.Support.EquatableList< T >.Equals ( System.Collections.Generic.IEnumerable< T >  other)

Compares this sequence to another System.Collections.Generic.IEnumerable{T} implementation, returning true if they are equal, false otherwise.

Parameters
otherThe other System.Collections.Generic.IEnumerable{T} implementation to compare against.
Returns
True if the sequence in other is the same as this one.

Definition at line 213 of file EquatableList.cs.

override bool Lucene.Net.Support.EquatableList< T >.Equals ( object  obj)

Compares this object for equality against other.

Parameters
objThe other object to compare this object against.
Returns
True if this object and obj are equal, false otherwise.

Definition at line 224 of file EquatableList.cs.

override int Lucene.Net.Support.EquatableList< T >.GetHashCode ( )

Gets the hash code for the list.

Returns
The hash code value.

Definition at line 232 of file EquatableList.cs.

static int Lucene.Net.Support.EquatableList< T >.GetHashCode ( System.Collections.Generic.IEnumerable< T >  source)
static

Gets the hash code for the list.

Parameters
sourceThe System.Collections.Generic.IEnumerable{T} implementation which will have all the contents hashed.
Returns
The hash code value.

Definition at line 245 of file EquatableList.cs.


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