Show / Hide Table of Contents

    Class LabelAndValue

    Single label and its value, usually contained in a FacetResult.

    Inheritance
    System.Object
    LabelAndValue
    Namespace: Lucene.Net.Facet
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public sealed class LabelAndValue : object

    Constructors

    | Improve this Doc View Source

    LabelAndValue(String, Int32)

    Constructor for value. Makes the ToString() method print the value as an with no decimal.

    Declaration
    public LabelAndValue(string label, int value)
    Parameters
    Type Name Description
    System.String label
    System.Int32 value
    | Improve this Doc View Source

    LabelAndValue(String, Single)

    Constructor for value. Makes the ToString() method print the value as a with at least 1 number after the decimal.

    Declaration
    public LabelAndValue(string label, float value)
    Parameters
    Type Name Description
    System.String label
    System.Single value

    Properties

    | Improve this Doc View Source

    Label

    Facet's label.

    Declaration
    public string Label { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    TypeOfValue

    The original data type of Value that was passed through the constructor.

    Declaration
    public Type TypeOfValue { get; }
    Property Value
    Type Description
    Type
    | Improve this Doc View Source

    Value

    Value associated with this label.

    Declaration
    public float Value { get; }
    Property Value
    Type Description
    System.Single

    Methods

    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    System.Object other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)