C# Class Lucene.Net.Facet.LabelAndValue

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

Méthodes publiques

Méthode 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 méthode

public Equals ( object other ) : bool
other object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

LabelAndValue() public méthode

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
Résultat System

LabelAndValue() public méthode

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
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string