Class NumberFormat
A LUCENENET specific class that represents a numeric format. This class
mimicks the design of Java's NumberFormat class, which unlike the
NumberFormatInfo class in .NET, can be subclassed.
Assembly: Lucene.Net.dll
public abstract class NumberFormat
Constructors
A LUCENENET specific class that represents a numeric format. This class
mimicks the design of Java's NumberFormat class, which unlike the
NumberFormatInfo class in .NET, can be subclassed.
Declaration
protected NumberFormat(IFormatProvider formatProvider)
Parameters
Properties
A LUCENENET specific class that represents a numeric format. This class
mimicks the design of Java's NumberFormat class, which unlike the
NumberFormatInfo class in .NET, can be subclassed.
Declaration
public IFormatProvider FormatProvider { get; }
Property Value
Methods
A LUCENENET specific class that represents a numeric format. This class
mimicks the design of Java's NumberFormat class, which unlike the
NumberFormatInfo class in .NET, can be subclassed.
Declaration
public virtual string Format(double number)
Parameters
Type |
Name |
Description |
double |
number |
|
Returns
A LUCENENET specific class that represents a numeric format. This class
mimicks the design of Java's NumberFormat class, which unlike the
NumberFormatInfo class in .NET, can be subclassed.
Declaration
public virtual string Format(long number)
Parameters
Type |
Name |
Description |
long |
number |
|
Returns
A LUCENENET specific class that represents a numeric format. This class
mimicks the design of Java's NumberFormat class, which unlike the
NumberFormatInfo class in .NET, can be subclassed.
Declaration
public virtual string Format(object number)
Parameters
Type |
Name |
Description |
object |
number |
|
Returns
Declaration
protected virtual string GetNumberFormat()
Returns
Type |
Description |
string |
A numeric format string.
|
A LUCENENET specific class that represents a numeric format. This class
mimicks the design of Java's NumberFormat class, which unlike the
NumberFormatInfo class in .NET, can be subclassed.
Declaration
public abstract Number Parse(string source)
Parameters
Type |
Name |
Description |
string |
source |
|
Returns
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object.
|
Overrides