Advertisement
Guest User

Untitled

a guest
Dec 30th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. public class PackSizeModel {
  2.  
  3. // here some variable you need to store on the pack size
  4. private String size;
  5. private float price;
  6. // I don't know what's the type (string, int, float) of your datas...
  7.  
  8. // here the constructors
  9. public PackSizeModel() { }
  10.  
  11. public PackSizeModel(String size, float price) {
  12. this.setSize(size);
  13. this.setPrice(price);
  14. }
  15.  
  16. // setters
  17. public void setSize(String size) {
  18. this.size = size;
  19. }
  20.  
  21. public void setPrice(float price) {
  22. this.price = price;
  23. }
  24.  
  25. // your actual getters
  26. public String getPackSize_packSize() {
  27. return this.size;
  28. }
  29.  
  30. public float getPackSize_sellingPrice() {
  31. return this.price;
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement