public class

HumanizeFormatProvider

extends Object
implements FormatProvider
java.lang.Object
   ↳ humanize.text.HumanizeFormatProvider

Class Overview

Exposes as HumanizeFormatProvider.HumanizeFormats all the methods annotated with Expose of Humanize class.

Example:
 Humanize.format("size {0, humanize, binary.prefix}", 8);
 // == "size 8 bytes"
 

Summary

Nested Classes
class HumanizeFormatProvider.HumanizeFormat  
Public Constructors
HumanizeFormatProvider()
Public Methods
static FormatFactory factory()
FormatFactory getFactory()
Gets the format factory.
String getFormatName()
Gets the format name that will be registered.
[Expand]
Inherited Methods
From class java.lang.Object
From interface humanize.spi.FormatProvider

Public Constructors

public HumanizeFormatProvider ()

Public Methods

public static FormatFactory factory ()

public FormatFactory getFactory ()

Gets the format factory.

Returns

public String getFormatName ()

Gets the format name that will be registered. If you want to register multiple names for a format then return a String with the names concatenated by a vertical bar character '|'.

Returns
  • the format name