Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. package com.thinksmart.happyapp.model;
  2.  
  3. /**
  4. * Holds the different types of tasks a user is asked to do. Helpful when
  5. * randomising the list to avoid too many in a single area, ie too many for your
  6. * colleagues!!
  7. *
  8. * @author DaveLawrence
  9. *
  10. */
  11. public enum TaskCategoryEnum
  12. // implements Externalizable
  13. {
  14. ONE_FOR_YOU("Something for you..."), PAY_IT_FORWARD("Pay it forward..."), KARMA("Good karma...");
  15.  
  16. private String value;
  17.  
  18. private TaskCategoryEnum(String value) {
  19. this.value = value;
  20. }
  21.  
  22. public String getTitleText() {
  23. return value;
  24. }
  25.  
  26. // @Override
  27. // public int getVersion() {
  28. // return 1;
  29. // }
  30.  
  31. // @Override
  32. // public void externalize(DataOutputStream out) throws IOException {
  33. // // Util.writeObject(ONE_FOR_YOU, out);
  34. // // Util.writeObject(PAY_IT_FORWARD, out);
  35. // // Util.writeObject(KARMA, out);
  36. // Util.writeUTF(value, out);
  37. // }
  38. //
  39. // @Override
  40. // public void internalize(int version, DataInputStream in) throws
  41. // IOException {
  42. // value = Util.readUTF(in);
  43. // // ONE_FOR_YOU = (TaskCategoryEnum) Util.readObject(in);
  44. // // PAY_IT_FORWARD = (TaskCategoryEnum) Util.readObject(in);
  45. // // taskCategory = (TaskCategoryEnum) Util.readObject(in);
  46. // }
  47. //
  48. // @Override
  49. // public String getObjectId() {
  50. // return "TaskCategoryEnum";
  51. // }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement