Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Product

crownedzero Nov 15th, 2012 34 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package domain;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public class Product implements Serializable {
  6.  
  7.     private String productID;
  8.     private String productName;
  9.     private String productDescription;
  10.     private float weight;
  11.     private float cost;
  12.  
  13.     /**
  14.      * Full arg constructor; creates a Product with all the information supplied
  15.      *
  16.      * @param productID
  17.      * @param productName
  18.      * @param productDescription
  19.      * @param weight
  20.      * @param cost
  21.      */
  22.     public Product(String productID, String productName, String productDescription, float weight, float cost) {
  23.         this.productID = productID;
  24.         this.productName = productName;
  25.         this.productDescription = productDescription;
  26.         this.weight = weight;
  27.         this.cost = cost;
  28.     }
  29.  
  30.     /**
  31.      * No arg constructor
  32.      */
  33.     public Product() {
  34.     }
  35.  
  36.     /**
  37.      * Getter
  38.      *
  39.      * @return
  40.      */
  41.     public String getProductID() {
  42.         return productID;
  43.     }
  44.  
  45.     /**
  46.      * Setter
  47.      *
  48.      * @param productID
  49.      */
  50.     public void setProductID(String productID) {
  51.         this.productID = productID;
  52.     }
  53.  
  54.     /**
  55.      * Getter
  56.      *
  57.      * @return
  58.      */
  59.     public String getProductName() {
  60.         return productName;
  61.     }
  62.  
  63.     /**
  64.      * Setter
  65.      *
  66.      * @param productID
  67.      */
  68.     public void setProductName(String productName) {
  69.         this.productName = productName;
  70.     }
  71.  
  72.     /**
  73.      * Getter
  74.      *
  75.      * @return
  76.      */
  77.     public String getProductDescription() {
  78.         return productDescription;
  79.     }
  80.  
  81.     /**
  82.      * Setter
  83.      *
  84.      * @param productID
  85.      */
  86.     public void setProductDescription(String productDescription) {
  87.         this.productDescription = productDescription;
  88.     }
  89.  
  90.     /**
  91.      * Getter
  92.      *
  93.      * @return
  94.      */
  95.     public float getWeight() {
  96.         return weight;
  97.     }
  98.  
  99.     /**
  100.      * Setter
  101.      *
  102.      * @param productID
  103.      */
  104.     public void setWeight(float weight) {
  105.         this.weight = weight;
  106.     }
  107.  
  108.     /**
  109.      * Getter
  110.      *
  111.      * @return
  112.      */
  113.     public float getCost() {
  114.         return cost;
  115.     }
  116.  
  117.     /**
  118.      * Setter
  119.      *
  120.      * @param productID
  121.      */
  122.     public void setCost(float cost) {
  123.         this.cost = cost;
  124.     }
  125.  
  126.     /**
  127.      * I wonder what this does >.>
  128.      *
  129.      * @return
  130.      */
  131.     @Override
  132.     public String toString() {
  133.         return "Product: " + productID + " " + productName + " " + productDescription + " " + weight + " " + cost;
  134.     }
  135. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top