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

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(java.util.Map<K,​java.util.Collection<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

      • collectionFactory

        private final Function<? super K,​? extends java.util.Collection<? super V>> collectionFactory
      • valueSelector

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

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

      • ToMultimapKeyValueSelector

        ToMultimapKeyValueSelector​(Function<? super K,​? extends java.util.Collection<? super V>> collectionFactory,
                                   Function<? super T,​? extends V> valueSelector,
                                   Function<? super T,​? extends K> keySelector)
    • Method Detail

      • accept

        public void accept​(java.util.Map<K,​java.util.Collection<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