Class Functions.ToMapKeyValueSelector<K,​V,​T>

  • All Implemented Interfaces:
    BiConsumer<java.util.Map<K,​V>,​T>
    Enclosing class:
    Functions

    static final class Functions.ToMapKeyValueSelector<K,​V,​T>
    extends java.lang.Object
    implements BiConsumer<java.util.Map<K,​V>,​T>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(java.util.Map<K,​V> m, T t)
      Performs an operation on the given values.
      • Methods inherited from class java.lang.Object

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

      • valueSelector

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

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

      • ToMapKeyValueSelector

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

      • accept

        public void accept​(java.util.Map<K,​V> m,
                           T t)
                    throws java.lang.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:
        java.lang.Throwable - if the implementation wishes to throw any type of exception