Uses of Class
com.google.common.base.Converter
-
Packages that use Converter Package Description com.google.common.base Basic utility libraries and interfaces.com.google.common.collect Collection interfaces and implementations, and other utilities for collections.com.google.common.primitives Static utilities for the eight primitive types andvoid, and value types for treating them as unsigned or storing them in immutable arrays. -
-
Uses of Converter in com.google.common.base
Methods in com.google.common.base that return Converter Modifier and Type Method Description <C> Converter<A,C>Converter. andThen(Converter<B,C> secondConverter)Returns a converter whoseconvertmethod appliessecondConverterto the result of this converter.Converter<java.lang.String,java.lang.String>CaseFormat. converterTo(CaseFormat targetFormat)Returns a serializableConverterthat converts strings from this format totargetFormat.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 convertsthis.convert(a)back to a value roughly equivalent toa.static <T extends java.lang.Enum<T>>
Converter<java.lang.String,T>Enums. stringConverter(java.lang.Class<T> enumClass)Returns a serializable converter that converts between strings andenumvalues of typeenumClassusingEnum.valueOf(Class, String)andEnum.name().Methods in com.google.common.base with parameters of type Converter Modifier and Type Method Description <C> Converter<A,C>Converter. andThen(Converter<B,C> secondConverter)Returns a converter whoseconvertmethod appliessecondConverterto the result of this converter. -
Uses of Converter in com.google.common.collect
Methods in com.google.common.collect that return Converter Modifier and Type Method Description static <A,B>
Converter<A,B>Maps. asConverter(BiMap<A,B> bimap)Returns aConverterthat converts values usingbimap.get(), and whose inverse view converts values usingbimap.inverse().get(). -
Uses of Converter in com.google.common.primitives
Methods in com.google.common.primitives that return Converter Modifier and Type Method Description static Converter<java.lang.String,java.lang.Double>Doubles. stringConverter()Returns a serializable converter object that converts between strings and doubles usingDouble.valueOf(java.lang.String)andDouble.toString().static Converter<java.lang.String,java.lang.Float>Floats. stringConverter()Returns a serializable converter object that converts between strings and floats usingFloat.valueOf(java.lang.String)andFloat.toString().static Converter<java.lang.String,java.lang.Integer>Ints. stringConverter()Returns a serializable converter object that converts between strings and integers usingInteger.decode(java.lang.String)andInteger.toString().static Converter<java.lang.String,java.lang.Long>Longs. stringConverter()Returns a serializable converter object that converts between strings and longs usingLong.decode(java.lang.String)andLong.toString().static Converter<java.lang.String,java.lang.Short>Shorts. stringConverter()Returns a serializable converter object that converts between strings and shorts usingShort.decode(java.lang.String)andShort.toString().
-