Package org.apache.bookkeeper.util
Class LedgerIdFormatter.LongLedgerIdFormatter
- java.lang.Object
- 
- org.apache.bookkeeper.util.LedgerIdFormatter
- 
- org.apache.bookkeeper.util.LedgerIdFormatter.LongLedgerIdFormatter
 
 
- 
- Enclosing class:
- LedgerIdFormatter
 
 public static class LedgerIdFormatter.LongLedgerIdFormatter extends LedgerIdFormatter long ledgerId formatter.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.bookkeeper.util.LedgerIdFormatterLedgerIdFormatter.HexLedgerIdFormatter, LedgerIdFormatter.LongLedgerIdFormatter, LedgerIdFormatter.UUIDLedgerIdFormatter
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.bookkeeper.util.LedgerIdFormatterLONG_LEDGERID_FORMATTER
 
- 
 - 
Constructor SummaryConstructors Constructor Description LongLedgerIdFormatter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringformatLedgerId(long ledgerId)Formats the LedgerId according to the type of the Formatter and return it in String format.longreadLedgerId(java.lang.String ledgerIdString)converts the ledgeridString, which is in format of the type of formatter, to the long value.- 
Methods inherited from class org.apache.bookkeeper.util.LedgerIdFormatternewLedgerIdFormatter, newLedgerIdFormatter
 
- 
 
- 
- 
- 
Method Detail- 
formatLedgerIdpublic java.lang.String formatLedgerId(long ledgerId) Description copied from class:LedgerIdFormatterFormats the LedgerId according to the type of the Formatter and return it in String format.- Specified by:
- formatLedgerIdin class- LedgerIdFormatter
- Returns:
 
 - 
readLedgerIdpublic long readLedgerId(java.lang.String ledgerIdString) Description copied from class:LedgerIdFormatterconverts the ledgeridString, which is in format of the type of formatter, to the long value.- Specified by:
- readLedgerIdin class- LedgerIdFormatter
- Returns:
 
 
- 
 
-