Interface IntFunction<T>

All Superinterfaces:
Serializable, ToIntFunction<T>
All Known Implementing Classes:
Functions.IntFunctionChain, Functions.SizeFunction, IntegerFunctionImpl
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IntFunction<T> extends ToIntFunction<T>, Serializable
IntFunction is a primitive Function which may be used to reduce the overhead of autoboxing Integer objects in places where primitive ints could be used. This file was automatically generated from template file primitiveFunction.stg.
  • Method Summary

    Modifier and Type
    default int
    applyAsInt(T value)
    intValueOf(T anObject)
  • Method Details

    • intValueOf

      int intValueOf(T anObject)
    • applyAsInt

      default int applyAsInt(T value)
      Specified by:
      applyAsInt in interface ToIntFunction<T>