Class Functions.ToMapKeyValueSelector<K,V,T>

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

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

    • valueSelector

      private final Function<? super T,? extends V> valueSelector
    • keySelector

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

    • ToMapKeyValueSelector

      ToMapKeyValueSelector(Function<? super T,? extends V> valueSelector, Function<? super T,? extends K> keySelector)
  • Method Details

    • accept

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