it.biobytes.ammentos.test
Class Product

java.lang.Object
  extended by it.biobytes.ammentos.test.Product

public class Product
extends java.lang.Object

Describes a product

Author:
Davide Deidda

Constructor Summary
Product()
          Creates a new instance of Product
Product(java.lang.String id)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          This method is just to force off limits conditions
protected  void finalize()
           
 java.lang.String getDescription()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 double getPrice()
           
 int hashCode()
          This method is just to force off limits conditions
 void setName(java.lang.String name)
           
 void setPrice(double price)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Product

public Product()
Creates a new instance of Product


Product

public Product(java.lang.String id)
Method Detail

getId

public java.lang.String getId()

getName

public java.lang.String getName()

getDescription

public java.lang.String getDescription()

getPrice

public double getPrice()

toString

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

setName

public void setName(java.lang.String name)

setPrice

public void setPrice(double price)

equals

public boolean equals(java.lang.Object obj)
This method is just to force off limits conditions

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
This method is just to force off limits conditions

Overrides:
hashCode in class java.lang.Object

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable