Interface LongFunction<T>

All Superinterfaces:
Serializable, ToLongFunction<T>
All Known Implementing Classes:
Functions.LongFunctionChain, LongFunctionImpl
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 LongFunction<T> extends ToLongFunction<T>, Serializable
LongFunction is a primitive Function which may be used to reduce the overhead of autoboxing Long objects in places where primitive longs could be used. This file was automatically generated from template file primitiveFunction.stg.
Since:
3.0.
  • Method Summary

    Modifier and Type
    Method
    Description
    default long
    applyAsLong(T value)
     
    long
    longValueOf(T anObject)
     
  • Method Details

    • longValueOf

      long longValueOf(T anObject)
    • applyAsLong

      default long applyAsLong(T value)
      Specified by:
      applyAsLong in interface ToLongFunction<T>