Back to project page stack-overlook.
The source code is released under:
MIT License
If you think the Android project stack-overlook listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.sambuo.stackoverlook.utilities; /*from ww w .j a va 2 s.c o m*/ /** * Interface for a type-safe reduce function. * Code taken from http://stackoverflow.com/questions/223013/is-there-a-type-safe-java-implementation-of-reduce * * @author Jimmy Sambuo * * @param <A> The type output * @param <T> The type input */ public interface Reducer<A, T> { A foldIn(A accum, T next); }