Raizekas

Untitled

Apr 27th, 2021
36
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package projektas.duombaze.entities;
  2.  
  3. public class Preke
  4. {
  5. private int id;
  6. private String pav;
  7. private double kaina;
  8. private int kiekis;
  9.  
  10. public Preke(int id, String pav, double kaina, int kiekis)
  11. {
  12. this.id = id;
  13. this.pav = pav;
  14. this.kaina = kaina;
  15. this.kiekis = kiekis;
  16. }
  17.  
  18.  
  19. public int getId()
  20. {
  21. return id;
  22. }
  23.  
  24. public void setId(int id)
  25. {
  26. this.id = id;
  27. }
  28.  
  29. public String getPav()
  30. {
  31. return pav;
  32. }
  33.  
  34. public void setPav(String pav)
  35. {
  36. this.pav = pav;
  37. }
  38.  
  39. public double getKaina()
  40. {
  41. return kaina;
  42. }
  43.  
  44. public void setKaina(double kaina)
  45. {
  46. this.kaina = kaina;
  47. }
  48.  
  49. public int getKiekis()
  50. {
  51. return kiekis;
  52. }
  53.  
  54. public void setKiekis(int kiekis)
  55. {
  56. this.kiekis = kiekis;
  57. }
  58.  
  59. @Override
  60. public String toString()
  61. {
  62. return "Preke{" +
  63. "id=" + id +
  64. ", pav='" + pav + '\'' +
  65. ", kaina=" + kaina +
  66. ", kiekis=" + kiekis +
  67. '}';
  68. }
  69. }
  70.  
RAW Paste Data