Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. package com.example.simon_000.p1.Customs;
  2.  
  3. /**
  4. * Created by simon_000 on 2014-09-26.
  5. */
  6. public class Info {
  7. private String _title;
  8. private String _desc;
  9. private String _cate;
  10. private Double _value;
  11. private String _date;
  12. private int _id;
  13.  
  14. public Info() {
  15.  
  16. }
  17. public Info(String date, String title, Double Value, String details, String cate) {
  18. this._date = date;
  19. this._title = title;
  20. this._value = Value;
  21. this._desc = details;
  22. this._cate = cate;
  23.  
  24. }
  25. public Info(int id, String date, String title, Double Value, String details, String cate) {
  26. this._date = date;
  27. this._title = title;
  28. this._value = Value;
  29. this._desc = details;
  30. this._cate = cate;
  31. this._id = id;
  32. }
  33.  
  34. public int get_id() {
  35. return _id;
  36. }
  37.  
  38. public void set_id(int _id) {
  39. this._id = _id;
  40. }
  41.  
  42. public String get_title() {
  43. return _title;
  44. }
  45.  
  46. public void set_title(String _title) {
  47. this._title = _title;
  48. }
  49.  
  50. public String get_desc() {
  51. return _desc;
  52. }
  53.  
  54. public void set_desc(String _desc) {
  55. this._desc = _desc;
  56. }
  57.  
  58. public String get_cate() {
  59. return _cate;
  60. }
  61.  
  62. public void set_cate(String _cate) {
  63. this._cate = _cate;
  64. }
  65.  
  66. public Double get_value() {
  67. return _value;
  68. }
  69.  
  70. public void set_value(Double _value) {
  71. this._value = _value;
  72. }
  73.  
  74. public String get_date() {
  75. return _date;
  76. }
  77.  
  78. public void set_date(String _date) {
  79. this._date = _date;
  80. }
  81.  
  82. public String toString (){
  83. return _title;
  84. }
  85.  
  86.  
  87.  
  88.  
  89.  
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement