Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Struct OrdAndValue<T>

    Holds a single entry.

    Implements
    IEquatable<OrdAndValue<T>>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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 other parameter; otherwise, false.

    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 obj and this instance are the same type and represent the same value; otherwise, false.

    Overrides
    ValueType.Equals(object)

    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
    ValueType.GetHashCode()

    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

    Implements

    IEquatable<T>
    Back to top Copyright © 2025 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.