public interface ValueFormatter extends Streamable
Modifier and Type | Interface and Description |
---|---|
static class |
ValueFormatter.BooleanFormatter |
static class |
ValueFormatter.DateTime
A time formatter which is based on date/time format.
|
static class |
ValueFormatter.GeoHash |
static class |
ValueFormatter.IPv4Formatter |
static class |
ValueFormatter.Number |
static class |
ValueFormatter.Raw |
Modifier and Type | Field and Description |
---|---|
static ValueFormatter |
BOOLEAN |
static ValueFormatter |
GEOHASH |
static ValueFormatter |
IPv4 |
static ValueFormatter |
RAW |
Modifier and Type | Method and Description |
---|---|
String |
format(double value) |
String |
format(long value)
Formats the given millis time value (since the epoch) to string.
|
byte |
id()
Uniquely identifies this formatter (used for efficient serialization)
|
readFrom, writeTo
static final ValueFormatter RAW
static final ValueFormatter IPv4
static final ValueFormatter GEOHASH
static final ValueFormatter BOOLEAN
byte id()
String format(long value)
value
- The long value to format.String format(double value)
value
- double The double value to format.Copyright © 2009–2016. All rights reserved.