org.kiwiproject.util.function.KiwiBiConsumers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kiwi Show documentation
Show all versions of kiwi Show documentation
Kiwi is a utility library. We really like Google's Guava, and also use Apache Commons.
But if they don't have something we need, and we think it is useful, this is where we put it.
package org.kiwiproject.util.function;
import lombok.experimental.UtilityClass;
import java.util.function.BiConsumer;
/**
* Contains helper methods for {@link BiConsumer}.
*/
@UtilityClass
public class KiwiBiConsumers {
/**
* Provides a type-consistent, no-op {@link BiConsumer}.
*
* @param first type parameter of the BiConsumer
* @param second type parameter of the BiConsumer
* @return the no-op BiConsumer
*/
public static BiConsumer noOp() {
return (t, u) -> {
// no-op
};
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy