com.gotdns.jimula.EatHealthy
Class Milk

java.lang.Object
  |
  +--com.gotdns.jimula.EatHealthy.Milk

public class Milk
extends java.lang.Object

Milk is an object which contain it's nutrien, includes protein, carbohydrate, fat, and calories.

EatHealthy

A simple personal nutrient need and food serving calculator

Copyright (c) 2003


Field Summary
 int calories
          calories contents of one milk's serving
static int carb
          carbohydrate contents of one milk's serving
 int fat
          fat contents of one milk's serving
static int protein
          protein contents of one milk's serving
 
Constructor Summary
Milk(java.lang.String fat_quantity)
          Constructs a new milk object. milk's portion of fat and calories depend on it is non-fat, low-fat, or whole-fat.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

protein

public static final int protein
protein contents of one milk's serving

See Also:
Constant Field Values

carb

public static final int carb
carbohydrate contents of one milk's serving

See Also:
Constant Field Values

fat

public int fat
fat contents of one milk's serving


calories

public int calories
calories contents of one milk's serving

Constructor Detail

Milk

public Milk(java.lang.String fat_quantity)
Constructs a new milk object. milk's portion of fat and calories depend on it is non-fat, low-fat, or whole-fat.

Parameters:
fat_quantity - represents milk's fat quantity