com.github.tommyettinger.function.IntSupplier Maven / Gradle / Ivy
package com.github.tommyettinger.function;
/**
* Represents a supplier of {@code int}-valued results.
*
* This is identical to {@code IntSupplier} in Java 8, and is present here so environments
* that support lambdas but not Java 8 APIs (such as RoboVM) can use it.
*
* This is a functional interface whose functional method is {@link #getAsInt()}.
*/
@FunctionalInterface
public interface IntSupplier {
/**
* Gets a result.
*
* @return a result
*/
int getAsInt();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy