java.util.function.BiConsumer Maven / Gradle / Ivy
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package java.util.function;
/**
* This is the back-port for the according interface of Java 1.8+.
* ATTENTION:
* The Java 1.8+ version of this interface also defines default methods that can NOT be supported in prior
* java versions. Therefore, mmm-util-core
offers helper methods that give similar features.
* However, we strongly recommend that you update your project to Java 1.8+ to make use of closures (lambda
* expressions) and other benefits.
*
* @param is the generic type of the first input object to {@link #accept(Object, Object) accept}.
* @param is the generic type of the second input object to {@link #accept(Object, Object) accept}.
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 1.0.0
*/
public interface BiConsumer {
/**
* Performs operations upon the provided objects which may modify those objects and/or external state.
*
* @param t is the first input object
* @param u is the second input object
*/
void accept(T t, U u);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy