Class BinaryOperatorMap<K,​T>

    • Constructor Detail

      • BinaryOperatorMap

        public BinaryOperatorMap()
        Default - for serialisation.
      • BinaryOperatorMap

        public BinaryOperatorMap​(BinaryOperator<? super T> binaryOperator)
    • Method Detail

      • setBinaryOperator

        public void setBinaryOperator​(BinaryOperator<? super T> binaryOperator)
      • _apply

        public Map<K,​T> _apply​(Map<K,​T> state,
                                     Map<K,​T> input)
        Iterate through the values of an input map, folding them into the state map using the wrapped BinaryOperator.
        Parameters:
        state - Current state map.
        input - New input map.
        Returns:
        New state map.