package classes; import java.util.ArrayList; import Interfaces.ComparableObject; public class Category implements ComparableObject{ private int ID; private ArrayList objects; private String name; public Category(String name){ setObjects(new ArrayList()); 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 getObjects() { return objects; } /** * @param objects the objects to set */ public void setObjects(ArrayList 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(); } }