eShopper
Class Recipe

java.lang.Object
  extended byeShopper.Recipe

public class Recipe
extends java.lang.Object

This is a recipe that is in the database but does not need the information associated with being in a shopping list.

Author:
Nathan

Constructor Summary
Recipe(int ID, java.lang.String name)
          Explicit value constructor for a recipe.
 
Method Summary
 int getID()
          Accessor method for the ID of the recipe.
 java.lang.String toString()
          Override of the toString function inherited from Object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Recipe

public Recipe(int ID,
              java.lang.String name)
Explicit value constructor for a recipe.

Parameters:
ID - of the recipe
name - of the recipe
Method Detail

getID

public int getID()
Accessor method for the ID of the recipe.

Returns:
The recipe's ID.

toString

public java.lang.String toString()
Override of the toString function inherited from Object.

Returns:
name of the recipe