io.github.serpro69.kfaker.FunctionalUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-faker Show documentation
Show all versions of kotlin-faker Show documentation
Generate realistically looking fake data such as names, addresses, banking details, and many more, that can be used for testing and data anonymization purposes.
package io.github.serpro69.kfaker;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import java.util.function.Consumer;
public class FunctionalUtil {
public static Function1 fromConsumer(Consumer callable) {
return t -> {
callable.accept(t);
return Unit.INSTANCE;
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy