Class Functions.CastToClass<T,U>

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

static final class Functions.CastToClass<T,U> extends Object implements Function<T,U>
  • Field Details

    • clazz

      final Class<U> clazz
  • Constructor Details

    • CastToClass

      CastToClass(Class<U> clazz)
  • Method Details

    • 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