类的使用
com.alibaba.ageiport.common.function.Converter
使用Converter的程序包
-
com.alibaba.ageiport.common.function中Converter的使用
修饰符和类型方法说明Returns a converter whoseconvertmethod appliessecondConverterto the result of this converter.static <A,B> Converter<A, B> Converter.from(java.util.function.Function<? super A, ? extends B> forwardFunction, java.util.function.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.reverse()Returns the reversed view of this converter, which convertsthis.convert(a)back to a value roughly equivalent toa. -
com.alibaba.ageiport.common.lang中Converter的使用
修饰符和类型方法说明Ints.stringConverter()Returns a serializable converter object that converts between strings and integers usingInteger.decode(java.lang.String)andInteger.toString().