com.github.chaosfirebolt.converter.api.cache.storage.FunctionAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of roman-numeral-converter Show documentation
Show all versions of roman-numeral-converter Show documentation
Library for converting roman numerals to arabic and vice versa.
The newest version!
package com.github.chaosfirebolt.converter.api.cache.storage;
import java.util.function.Function;
class FunctionAdapter implements Computation {
private final Function function;
FunctionAdapter(Function function) {
this.function = function;
}
@Override
public O compute(I input) {
return function.apply(input);
}
@Override
public Function unwrap() {
return function;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy