ch.hsr.bieridee.domain
Class Consumption

java.lang.Object
  extended by ch.hsr.bieridee.domain.Action
      extended by ch.hsr.bieridee.domain.Consumption
All Implemented Interfaces:
IDomain

public class Consumption
extends Action
implements IDomain

Class representing a Consumption.


Constructor Summary
Consumption(java.util.Date date, Beer beer, User user)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class ch.hsr.bieridee.domain.Action
getBeer, getDate, getUser, setBeer, setDate, setUser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Consumption

public Consumption(java.util.Date date,
                   Beer beer,
                   User user)
Parameters:
date - Date the Activity happened.
beer - The Beer associated with the activity.
user - The User created that created the activity
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object