Class OrdAndValue<T>
Holds a single entry.
Inheritance
System.Object
OrdAndValue<T>
Implements
System.IEquatable<OrdAndValue<T>>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Facet
Assembly: Lucene.Net.Facet.dll
Syntax
public sealed class OrdAndValue<T> : IEquatable<OrdAndValue<T>>
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceOrdAndValue(Int32, T)
Default constructor.
Declaration
public OrdAndValue(int ord, T value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | ord | |
T | value |
Fields
| Improve this Doc View SourceOrd
Ordinal of the entry.
Declaration
public int Ord
Field Value
Type | Description |
---|---|
System.Int32 |
Value
Value associated with the ordinal.
Declaration
public T Value
Field Value
Type | Description |
---|---|
T |
Methods
| Improve this Doc View SourceEquals(OrdAndValue<T>)
Declaration
public bool Equals(OrdAndValue<T> other)
Parameters
Type | Name | Description |
---|---|---|
OrdAndValue<T> | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
Operators
| Improve this Doc View SourceEquality(OrdAndValue<T>, OrdAndValue<T>)
Declaration
public static bool operator ==(OrdAndValue<T> left, OrdAndValue<T> right)
Parameters
Type | Name | Description |
---|---|---|
OrdAndValue<T> | left | |
OrdAndValue<T> | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(OrdAndValue<T>, OrdAndValue<T>)
Declaration
public static bool operator !=(OrdAndValue<T> left, OrdAndValue<T> right)
Parameters
Type | Name | Description |
---|---|---|
OrdAndValue<T> | left | |
OrdAndValue<T> | right |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.IEquatable<T>