com.alee.api.jdk.BiConsumer Maven / Gradle / Ivy
The newest version!
/*
* This file is part of WebLookAndFeel library.
*
* WebLookAndFeel library is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* WebLookAndFeel library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WebLookAndFeel library. If not, see .
*/
package com.alee.api.jdk;
/**
* Represents an operation that accepts two input arguments and returns no result. This is the two-arity specialization of {@link Consumer}.
* Unlike most other functional interfaces, {@code BiConsumer} is expected to operate via side-effects.
*
* This is a custom bi-consumer for JDK6 support.
*
* @param the type of the first input to the operation
* @param the type of the second input to the operation
* @author Mikle Garin
* @see Consumer
*/
public interface BiConsumer
{
/**
* Performs this operation on the given arguments.
*
* @param t the first input argument
* @param u the second input argument
*/
public void accept ( T t, U u );
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy