Class Functions.ToMapKeySelector<K,​T>

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

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

      Fields 
      Modifier and Type Field Description
      private Function<? super T,​? extends K> keySelector  
    • Method Summary

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

      • keySelector

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

      • ToMapKeySelector

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

      • accept

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