Uses of Class
dev.mccue.guava.base.Converter

  • Uses of Converter in dev.mccue.guava.base

    Methods in dev.mccue.guava.base that return Converter
    Modifier and Type
    Method
    Description
    final <C> Converter<A,C>
    Converter.andThen(Converter<B,C> secondConverter)
    Returns a converter whose convert method applies secondConverter to the result of this converter.
    CaseFormat.converterTo(CaseFormat targetFormat)
    Returns a serializable 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.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>>
    Converter<String,T>
    Enums.stringConverter(Class<T> enumClass)
    Returns a serializable converter that converts between strings and enum values of type enumClass using Enum#valueOf(Class, String) and Enum#name().
    Methods in dev.mccue.guava.base with parameters of type Converter
    Modifier and Type
    Method
    Description
    final <C> Converter<A,C>
    Converter.andThen(Converter<B,C> secondConverter)
    Returns a converter whose convert method applies secondConverter to the result of this converter.