C# Class Lucene.Net.Facet.LabelAndValue

Single label and its value, usually contained in a FacetResult.
Datei anzeigen Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
Equals ( object other ) : bool
GetHashCode ( ) : int
LabelAndValue ( string label, float value ) : System

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

LabelAndValue ( string label, int value ) : System

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

ToString ( ) : string

Method Details

Equals() public method

public Equals ( object other ) : bool
other object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

LabelAndValue() public method

Constructor for float value. Makes the ToString() method print the value as a float with at least 1 number after the decimal.
public LabelAndValue ( string label, float value ) : System
label string
value float
return System

LabelAndValue() public method

Constructor for int value. Makes the ToString() method print the value as an int with no decimal.
public LabelAndValue ( string label, int value ) : System
label string
value int
return System

ToString() public method

public ToString ( ) : string
return string