Interface LongSupplier

All Superinterfaces:
LongSupplier

public interface LongSupplier extends LongSupplier
Enhanced LongSupplier.
Author:
Paul Ferraro
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final LongSupplier
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Supplier<Long>
    Returns a boxed version of this supplier.
    default LongSupplier
    Returns a new supplier that delegates to this supplier using the specified exception handler.
    default <V> Supplier<V>
    map(LongFunction<V> mapper)
    Returns a supplier that returns the value this function mapped via the specified function.
    of(long value)
     

    Methods inherited from interface java.util.function.LongSupplier

    getAsLong
  • Field Details

  • Method Details

    • map

      default <V> Supplier<V> map(LongFunction<V> mapper)
      Returns a supplier that returns the value this function mapped via the specified function.
      Type Parameters:
      V - the mapped value type
      Parameters:
      mapper - a mapping function
      Returns:
      a supplier that returns the value this function mapped via the specified function.
    • boxed

      default Supplier<Long> boxed()
      Returns a boxed version of this supplier.
      Returns:
      a boxed version of this supplier.
    • handle

      default LongSupplier handle(ToLongFunction<RuntimeException> handler)
      Returns a new supplier that delegates to this supplier using the specified exception handler.
      Parameters:
      handler - an exception handler
      Returns:
      a new supplier that delegates to this supplier using the specified exception handler.
    • of

      static LongSupplier of(long value)