001// Copyright (c) FIRST and other WPILib contributors. 002// Open Source Software; you can modify and/or share it under the terms of 003// the WPILib BSD license file in the root directory of this project. 004 005package edu.wpi.first.util.function; 006 007/** 008 * Represents an operation that accepts a single boolean-valued argument and returns no result. This 009 * is the primitive type specialization of {@link java.util.function.Consumer} for boolean. Unlike 010 * most other functional interfaces, BooleanConsumer is expected to operate via side effects. 011 * 012 * <p>This is a functional interface whose functional method is {@link #accept(boolean)}. 013 */ 014@FunctionalInterface 015public interface BooleanConsumer { 016 /** 017 * Performs this operation on the given argument. 018 * 019 * @param value the input argument 020 */ 021 void accept(boolean value); 022}