Class MapCollectProcedure<T,​K,​V>

  • All Implemented Interfaces:
    Serializable, Consumer<T>, Procedure<T>

    public final class MapCollectProcedure<T,​K,​V>
    extends Object
    implements Procedure<T>
    MapCollectProcedure uses a Function to calculate the key for an object and puts the object with the key into the specified Map.
    See Also:
    Serialized Form
    • Constructor Detail

      • MapCollectProcedure

        public MapCollectProcedure​(Map<K,​V> newMap,
                                   Function<? super T,​? extends K> newKeyFunction)
      • MapCollectProcedure

        public MapCollectProcedure​(Map<K,​V> newMap,
                                   Function<? super T,​? extends K> newKeyFunction,
                                   Function<? super T,​? extends V> newValueFunction)
    • Method Detail

      • value

        public void value​(T object)
        Specified by:
        value in interface Procedure<T>