Android Open Source - EulerSolutions Problem Calculator

From Project

Back to project page EulerSolutions.


The source code is released under:

MIT License

If you think the Android project EulerSolutions 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.eulersolutions.model;
//from ww w .  j a  va2  s  . c  om
import java.util.List;

import android.annotation.SuppressLint;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;

public abstract class ProblemCalculator implements Parcelable{
  private static final String TAG = "EulerSolutions-ProblemCalculator";
  protected abstract boolean validInput(List<Number> values);
  protected abstract List<Number> parseInput(List<String> values);
  protected abstract Number calculate(List<Number> values);
  public ProblemCalculator()
  public ProblemCalculator(Parcel source)
  public Number findAnswer(List<String> inputValues){
    Log.i(TAG, "entering Find Answer");
    List<Number> values = parseInput(inputValues);
      return null;
    return calculate(values);
  public int describeContents() {
    return this.hashCode();
  public void writeToParcel(Parcel destination, int flags) {

Java Source Code List