| Package | Description |
|---|---|
| com.google.common.base |
Basic utility libraries and interfaces.
|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
|
| com.google.common.primitives |
Static utilities for working with the eight primitive types and
void, and value types for treating them as unsigned.
|
| Modifier and Type | Method and Description |
|---|---|
<C> Converter |
Converter.andThen(Converter
Returns a converter whose
convert method applies
secondConverter to the result of this converter.
|
Converter |
CaseFormat.converterTo(CaseFormat
Returns a
Converter that converts strings from this format to
targetFormat.
|
static <A |
Converter.from(Function
Returns a converter based on
existing forward and backward functions.
|
static <T> Converter |
Converter.identity()
Returns a serializable converter that always converts or reverses an object to itself.
|
Converter |
Converter.reverse()
Returns the reversed view of this converter, which converts
this.convert(a) back to a value roughly equivalent to
a.
|
static <T extends Enum |
Enums.stringConverter(Class
Returns a converter that converts between strings and
enum values of type
enumClass using
Enum and
Enum.
|
| Modifier and Type | Method and Description |
|---|---|
<C> Converter |
Converter.andThen(Converter
Returns a converter whose
convert method applies
secondConverter to the result of this converter.
|
| Modifier and Type | Method and Description |
|---|---|
static <A |
Maps.asConverter(BiMap
Returns a
Converter that converts values using
bimap.get(), and whose inverse view converts values using
bimap.inverse()
.get().
|
| Modifier and Type | Method and Description |
|---|---|
static Converter |
Longs.stringConverter()
Returns a serializable converter object that converts between strings and longs using
Long and
Long.
|
static Converter |
Shorts.stringConverter()
Returns a serializable converter object that converts between strings and shorts using
Short and
Short.
|
static Converter |
Doubles.stringConverter()
Returns a serializable converter object that converts between strings and doubles using
Double and
Double.
|
static Converter |
Ints.stringConverter()
Returns a serializable converter object that converts between strings and integers using
Integer and
Integer.
|
static Converter |
Floats.stringConverter()
Returns a serializable converter object that converts between strings and floats using
Float and
Float.
|