What can I make the signature other than Object... so that it takes Objects or Functionals without casting?
Error:(36, 66) java: incompatible types: inference variable R has incompatible bounds
equality constraints: java.util.Map<java.lang.String,java.util.List<org.chapter3.Student>>
upper bounds: java.util.Map<java.lang.String,java.util.List<? super org.chapter3.Student>>,java.lang.Object
The identity value must be an identity for the accumulator function. This means that for all t, accumulator.apply(identity, t) is equal to t. The accumulator function must be an associative function.