Class Functions.ToMapKeySelector<K,T>

java.lang.Object
io.reactivex.rxjava3.internal.functions.Functions.ToMapKeySelector<K,T>
All Implemented Interfaces:
BiConsumer<Map<K,T>,T>
Enclosing class:
Functions

static final class Functions.ToMapKeySelector<K,T> extends Object implements BiConsumer<Map<K,T>,T>
  • Field Details

    • keySelector

      private final Function<? super T,? extends K> keySelector
  • Constructor Details

    • ToMapKeySelector

      ToMapKeySelector(Function<? super T,? extends K> keySelector)
  • Method Details

    • accept

      public void accept(Map<K,T> m, T t) throws Throwable
      Description copied from interface: BiConsumer
      Performs an operation on the given values.
      Specified by:
      accept in interface BiConsumer<K,T>
      Parameters:
      m - the first value
      t - the second value
      Throws:
      Throwable - if the implementation wishes to throw any type of exception