1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- package classes;
- import java.util.ArrayList;
- import Interfaces.ComparableObject;
- public class Category implements ComparableObject{
-
- private int ID;
- private ArrayList<CpsObject> objects;
- private String name;
-
- public Category(String name){
- setObjects(new ArrayList<CpsObject>());
- setName(name);
- setID(-1);
-
- }
- /**
- * @return the id
- */
- public int getID() {
- return ID;
- }
- /**
- * @param id the id to set
- */
- public void setID(int id) {
- this.ID = id;
- }
- /**
- * @return the objects
- */
- public ArrayList<CpsObject> getObjects() {
- return objects;
- }
- /**
- * @param objects the objects to set
- */
- public void setObjects(ArrayList<CpsObject> objects) {
- this.objects = objects;
- }
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
- /**
- * @param name the name to set
- */
- public void setName(String name) {
- this.name = name;
- }
- @Override
- public String getCompareName() {
- return getName();
- }
-
- }
|