Android Open Source - stack-overlook Reducer






From Project

Back to project page stack-overlook.

License

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.

Java Source Code

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);
}




Java Source Code List

com.sambuo.stackoverlook.AnswersActivity.java
com.sambuo.stackoverlook.QuestionActivity.java
com.sambuo.stackoverlook.UsersActivity.java
com.sambuo.stackoverlook.entities.Answer.java
com.sambuo.stackoverlook.entities.Question.java
com.sambuo.stackoverlook.entities.User.java
com.sambuo.stackoverlook.repositories.StackOverflowRepository.java
com.sambuo.stackoverlook.utilities.Reducer.java
com.sambuo.stackoverlook.utilities.Utils.java