io.deephaven.engine.primitive.function.ToCharFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-engine-primitive Show documentation
Show all versions of deephaven-engine-primitive Show documentation
Primitives: Expanding upon java.util.PrimitiveIterator and java.util.function.* for {byte, char, float, short}
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.engine.primitive.function;
/**
* Functional interface to apply an operation to an object and produce a {@code char}.
*
* @param the object type that this function applies to
*/
@FunctionalInterface
public interface ToCharFunction {
/**
* Applies this function to the given argument of type {@link T}.
*
* @param value the argument to the function
* @return the char result
*/
char applyAsChar(T value);
}