All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.chaosfirebolt.converter.api.cache.storage.FunctionAdapter Maven / Gradle / Ivy

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