1 /* 2 ******************************************************************************* 3 * Copyright (c) 2005 Chris Rose and AIMedia 4 * All rights reserved. FoodGroup and the accompanying materials 5 * are made available under the terms of the Common Public License v1.0 6 * which accompanies this distribution, and is available at 7 * http://www.eclipse.org/legal/cpl-v10.html 8 * 9 * Contributors: 10 * Chris Rose 11 *******************************************************************************/ 12 package ca.spaz.cron.database; 13 14 /*** 15 * A simple food group aggregator. Should have per-datasource subclasses. 16 * @author Chris Rose 17 */ 18 public abstract class AbstractFoodGroup implements FoodGroup { 19 20 public String toString() { 21 return getFoodGroupName(); 22 } 23 24 public boolean equals(FoodGroup fg) { 25 return fg.toString().equals(toString()); 26 } 27 28 }