Android Open Source - TacoTool Taco






From Project

Back to project page TacoTool.

License

The source code is released under:

GNU General Public License

If you think the Android project TacoTool 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.example.tacotool;
/*from w w  w .  j  a v a  2s.  com*/
import java.util.ArrayList;

public class Taco {

  private String name;
  private ArrayList<String> ingredients;
  private boolean nameSet;
    
  public Taco(){
    nameSet = false;
    ingredients = new ArrayList<String>();
  }
  
  public void setName(String n){
    if (n.length()  != 0) {
      name = n;
      nameSet = true;
    }
  }
  
  public boolean addIngredient(String ingr){
    if (ingredients.contains(ingr))
      return false;
    
    ingredients.add(ingr);
    return true;
  }
  
  public String getName(){
    return name;
  }
  
  public void removeIngredient(String ingr){
    ingredients.remove(ingr);
  }
  public ArrayList<String> getIngredients(){
    return ingredients;
  }
  
}




Java Source Code List

com.example.tacotool.CreateActivity.java
com.example.tacotool.MainActivity.java
com.example.tacotool.ManageActivity.java
com.example.tacotool.SettingsActivity.java
com.example.tacotool.Taco.java
database.DBManager.java
database.DBSQLiteHelper.java