Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

@FunctionalInterface

public interface ToIntFunction<T>

A function that answers a int; the int form of Function.

Type parameters

<T>
the input type

Methods

public abstract int applyAsInt(T value)Applies this function.

Method details

applyAsInt

public abstract int applyAsInt(T value)
Applies this function.

Parameters

value T
the input

Returns

the result