Back to project page android_app.
The source code is released under:
Apache License
If you think the Android project android_app 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 models; /*//w w w . ja v a 2 s . c o m ~ ******************************************************************************* ~ Copyright (c) 2013-2014 Daniel Lin, Kamal Chaya, Sean Penney, and Daniel Chuang ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. ~ ***************************************************************************** */ public class TeaData { private int size; private double price; private String flavor; private String type; private String milk; private String name; private int id; public TeaData(){} public TeaData(int size, double price, String flavor, String type, String milk, String name, int id) { super(); this.price = price; this.size = size; this.flavor = flavor; this.type = type; this.milk = milk; this.name = name; this.id = id; } public int getSize() { return this.size; } public double getPrice() { return this.price; } public String getFlavor() { return this.flavor; } public String getType() { return this.type; } public String getMilk() { return this.milk; } public String getName() { return this.name; } public int getId() { return this.id; } public void setSize(int size) { this.size = size; } public void setPrice(double price) { this.price = price; } public void setFlavor(String flavor) { this.flavor = flavor; } public void setType(String type) { this.type = type; } public void setMilk(String milk) { this.milk = milk; } public void setName(String name) { this.name = name; } public void setId(int id) { this.id = id; } @Override public String toString() { return name + "\nsize = " + size + "oz, price = " + price + "\nflavor = " + flavor + "\ntype = " + type + "\nmilk = " + milk; } }