Package | Description |
---|---|
com.stevewedig.blog.symbol.translate | |
com.stevewedig.blog.translate |
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigFormat
A "type alias" binding Format's Model to Map<String, String>.
|
interface |
SymbolFormat
A "type alias" binding Format's Model to SymbolMap.
|
Modifier and Type | Method and Description |
---|---|
<Value> SymbolTranslator.Builder |
SymbolTranslator.Builder.add(Symbol<Value> symbol,
Format<Value> format)
Add a symbol and associated format.
|
Modifier and Type | Field and Description |
---|---|
static Format<Boolean> |
FormatLib.boolFlagFormat
A Boolean format using 0 or 1.
|
static Format<Boolean> |
FormatLib.boolJsonFormat
A Boolean format using true or false.
|
static Format<Double> |
FormatLib.doubleFormat
A Double format using Double.parseDouble.
|
static Format<Float> |
FormatLib.floatFormat
A Float format using Float.parseFloat.
|
static Format<com.google.common.collect.ImmutableList<Integer>> |
FormatLib.intCommaListFormat
An Integer ImmutableList format with comma delimiters.
|
static Format<com.google.common.collect.ImmutableSet<Integer>> |
FormatLib.intCommaSetFormat
An Integer ImmutableSet format with comma delimiters.
|
static Format<Integer> |
FormatLib.intFormat
An Integer format using Integer.parseInt.
|
static Format<com.google.common.collect.ImmutableList<String>> |
FormatLib.strCommaListFormat
A String ImmutableList format with comma delimiters.
|
static Format<com.google.common.collect.ImmutableSet<String>> |
FormatLib.strCommaSetFormat
A String ImmutableSet format with comma delimiters.
|
static Format<String> |
FormatLib.strFormat
A String format which is a pass through (no-op).
|
static Format<com.google.common.collect.ImmutableSetMultimap<String,String>> |
FormatLib.strMultimapFormat
An ImmutableSetMultimap format with String keys and values, with comma delimited entries, and
with equal delimiting the key and value of an entry.
|
Modifier and Type | Method and Description |
---|---|
static <A,B> Format<B> |
FormatLib.chain(Format<A> format,
Translator<A,B> translator)
Chain together a format and a translator to create the combined format.
|
static <Item> Format<com.google.common.collect.ImmutableList<Item>> |
FormatLib.genListFormat(Format<Item> itemFormat,
String delimiter)
A function for creating List formats.
|
static <Item> Format<com.google.common.collect.ImmutableSet<Item>> |
FormatLib.genSetFormat(Format<Item> itemFormat,
String delimiter)
A function for creating Set formats.
|
Modifier and Type | Method and Description |
---|---|
static <A,B> Format<B> |
FormatLib.chain(Format<A> format,
Translator<A,B> translator)
Chain together a format and a translator to create the combined format.
|
static <Item> Format<com.google.common.collect.ImmutableList<Item>> |
FormatLib.genListFormat(Format<Item> itemFormat,
String delimiter)
A function for creating List formats.
|
static <Item> Format<com.google.common.collect.ImmutableSet<Item>> |
FormatLib.genSetFormat(Format<Item> itemFormat,
String delimiter)
A function for creating Set formats.
|
Copyright © 2014. All rights reserved.