Class LabelAndValue
Single label and its value, usually contained in a FacetResult.
Inheritance
System.Object
    LabelAndValue
  Inherited Members
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
  Namespace: Lucene.Net.Facet
Assembly: Lucene.Net.Facet.dll
Syntax
public sealed class LabelAndValue
  Constructors
| Improve this Doc View SourceLabelAndValue(String, Int32)
Constructor for System.Int32 value. Makes the ToString() method 
print the value as an System.Int32 with no decimal.
Declaration
public LabelAndValue(string label, int value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | label | |
| System.Int32 | value | 
LabelAndValue(String, Single)
Constructor for System.Single value. Makes the ToString() method 
print the value as a System.Single 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 SourceLabel
Facet's label.
Declaration
public string Label { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
TypeOfValue
The original data type of Value that was passed through the constructor.
Declaration
public Type TypeOfValue { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Type | 
Value
Value associated with this label.
Declaration
public float Value { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Single | 
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | other | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
Overrides
System.Object.Equals(System.Object)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetHashCode()
Declaration
public override int GetHashCode()
  Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Overrides
System.Object.GetHashCode()
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ToString()
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| System.String | 
Overrides
System.Object.ToString()