
com.netflix.evcache.util.SupplierUtils Maven / Gradle / Ivy
The newest version!
package com.netflix.evcache.util;
import java.util.concurrent.Callable;
import java.util.function.Supplier;
public final class SupplierUtils {
private SupplierUtils() {
}
public static Supplier wrap(Callable callable) {
return () -> {
try {
return callable.call();
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e) {
throw new RuntimeException(e);
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy