Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.noodlesandwich.rekord.extra;
 
 
 public final class GuavaFunctionTransformer<F, T> implements Transformer<F, T> {
     private final Function<? super T, ? extends F> inputFunction;
     private final Function<? super F, ? extends T> outputFunction;
 
    public GuavaFunctionTransformer(Function<? super T, ? extends F> inputFunctionFunction<? super F, ? extends T> outputFunction) {
        this. = inputFunction;
        this. = outputFunction;
    }
    @Override
    public F transformInput(T value) {
        return .apply(value);
    }
    @Override
    public T transformOutput(F value) {
        return .apply(value);
    }
New to GrepCode? Check out our FAQ X