
com.github.tommyettinger.function.BooleanToShortFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of funderby Show documentation
Show all versions of funderby Show documentation
Java 8+ functional interfaces for primitive types
The newest version!
package com.github.tommyettinger.function;
/**
* Represents an operation on a single {@code boolean}-valued operand that produces
* a {@code short}-valued result.
*
* This is a functional interface whose functional method is {@link #applyAsShort(boolean)}.
*/
@FunctionalInterface
public interface BooleanToShortFunction {
/**
* Applies this function to the given argument.
*
* @param value the function argument
* @return the function result
*/
short applyAsShort(boolean value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy