Class Functions.JustValue<T,U>

java.lang.Object
io.reactivex.rxjava3.internal.functions.Functions.JustValue<T,U>
All Implemented Interfaces:
Function<T,U>, Supplier<U>, Callable<U>
Enclosing class:
Functions

static final class Functions.JustValue<T,U> extends Object implements Callable<U>, Supplier<U>, Function<T,U>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final U
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JustValue(U value)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T t)
    Apply some calculation to the input value and return some other value.
     
    get()
    Produces a value or throws an exception.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • value

      final U value
  • Constructor Details

    • JustValue

      JustValue(U value)
  • Method Details

    • call

      public U call()
      Specified by:
      call in interface Callable<T>
    • apply

      public U apply(T t)
      Description copied from interface: Function
      Apply some calculation to the input value and return some other value.
      Specified by:
      apply in interface Function<T,U>
      Parameters:
      t - the input value
      Returns:
      the output value
    • get

      public U get()
      Description copied from interface: Supplier
      Produces a value or throws an exception.
      Specified by:
      get in interface Supplier<T>
      Returns:
      the value produced