Struct OrdAndValue<T>
Holds a single entry.
Implements
Inherited Members
Namespace: Lucene.Net.Facet
Assembly: Lucene.Net.Facet.dll
Syntax
public struct OrdAndValue<T> : IEquatable<OrdAndValue<T>> where T : struct
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
OrdAndValue(int, T)
Default constructor.
Declaration
public OrdAndValue(int ord, T value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | ord | |
| T | value |
Properties
Ord
Ordinal of the entry.
Declaration
public int Ord { get; }
Property Value
| Type | Description |
|---|---|
| int |
Value
Value associated with the ordinal.
Declaration
public T Value { get; }
Property Value
| Type | Description |
|---|---|
| T |
Methods
Equals(OrdAndValue<T>)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(OrdAndValue<T> other)
Parameters
| Type | Name | Description |
|---|---|---|
| OrdAndValue<T> | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current instance. |
Returns
| Type | Description |
|---|---|
| bool | true if |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
operator ==(OrdAndValue<T>, OrdAndValue<T>)
Holds a single entry.
Declaration
public static bool operator ==(OrdAndValue<T> left, OrdAndValue<T> right)
Parameters
| Type | Name | Description |
|---|---|---|
| OrdAndValue<T> | left | |
| OrdAndValue<T> | right |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(OrdAndValue<T>, OrdAndValue<T>)
Holds a single entry.
Declaration
public static bool operator !=(OrdAndValue<T> left, OrdAndValue<T> right)
Parameters
| Type | Name | Description |
|---|---|---|
| OrdAndValue<T> | left | |
| OrdAndValue<T> | right |
Returns
| Type | Description |
|---|---|
| bool |