All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.markozajc.ef.function.ShortFunction Maven / Gradle / Ivy

package com.github.markozajc.ef.function;

import java.util.function.Function;

/**
 * A {@link Function} variant that takes a primitive short, and returns a generic
 * type.
 *
 * @author Marko Zajc
 *
 * @param 
 *            the type of the result of the function
 */
@FunctionalInterface
public interface ShortFunction {

	/**
	 * Applies this function to the given arguments.
	 *
	 * @param p
	 *            value the function argument
	 *
	 * @return the function result
	 */
	R apply(short p);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy