uk.me.parabola.imgfmt.mps
Class ProductBlock
java.lang.Object
uk.me.parabola.imgfmt.mps.Block
uk.me.parabola.imgfmt.mps.ProductBlock
public class ProductBlock
- extends Block
A block describing a particular product. Not sure how this relates
to the map set.
- Author:
- Steve Ratcliffe
Methods inherited from class uk.me.parabola.imgfmt.mps.Block |
write |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ProductBlock
public ProductBlock()
writeBody
protected void writeBody(StructuredOutputStream out)
throws java.io.IOException
- Description copied from class:
Block
- Writes the body to the output stream given.
- Specified by:
writeBody
in class Block
- Parameters:
out
- The stream to write to.
- Throws:
java.io.IOException
setFamilyId
public void setFamilyId(int familyId)
getFamilyId
public int getFamilyId()
setProductId
public void setProductId(int productId)
getProductId
public int getProductId()
setDescription
public void setDescription(java.lang.String description)
getDescription
public java.lang.String getDescription()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object