| 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<A,C> | 
Converter.andThen(Converter<B,C> secondConverter)
Returns a converter whose  
convert method applies secondConverter to the result
 of this converter. | 
Converter<String,String> | 
CaseFormat.converterTo(CaseFormat targetFormat)
Returns a  
Converter that converts strings from this format to targetFormat. | 
static <A,B> Converter<A,B> | 
Converter.from(Function<? super A,? extends B> forwardFunction,
    Function<? super B,? extends A> backwardFunction)
Returns a converter based on separate forward and backward functions. 
 | 
static <T> Converter<T,T> | 
Converter.identity()
Returns a serializable converter that always converts or reverses an object to itself. 
 | 
Converter<B,A> | 
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<T>> | 
Enums.stringConverter(Class<T> enumClass)
Returns a converter that converts between strings and  
enum values of type enumClass using Enum.valueOf(Class, String) and Enum.name(). | 
| Modifier and Type | Method and Description | 
|---|---|
<C> Converter<A,C> | 
Converter.andThen(Converter<B,C> secondConverter)
Returns a converter whose  
convert method applies secondConverter to the result
 of this converter. | 
| Modifier and Type | Method and Description | 
|---|---|
static <A,B> Converter<A,B> | 
Maps.asConverter(BiMap<A,B> 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<String,Integer> | 
Ints.stringConverter()
Returns a serializable converter object that converts between strings and integers using  
Integer.decode(java.lang.String) and Integer.toString(). | 
static Converter<String,Short> | 
Shorts.stringConverter()
Returns a serializable converter object that converts between strings and shorts using  
Short.decode(java.lang.String) and Short.toString(). | 
static Converter<String,Float> | 
Floats.stringConverter()
Returns a serializable converter object that converts between strings and floats using  
Float.valueOf(java.lang.String) and Float.toString(). | 
static Converter<String,Double> | 
Doubles.stringConverter()
Returns a serializable converter object that converts between strings and doubles using  
Double.valueOf(java.lang.String) and Double.toString(). | 
static Converter<String,Long> | 
Longs.stringConverter()
Returns a serializable converter object that converts between strings and longs using  
Long.decode(java.lang.String) and Long.toString(). | 
Copyright © 2010–2018. All rights reserved.