Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. package com.besttime.workhorse;
  2.  
  3. import java.util.Date;
  4. import java.util.HashMap;
  5. import java.util.Map;
  6.  
  7.  
  8. public class ManagerAnkiet {
  9.  
  10. private Map<Long,Date> wyslaneAnkiety;
  11.  
  12. public Map<Long, Date> getWyslaneAnkiety() {
  13. return wyslaneAnkiety;
  14. }
  15.  
  16. public ManagerAnkiet(){
  17. this.wyslaneAnkiety = new HashMap<Long,Date>();
  18. }
  19.  
  20.  
  21. public void addToMap(Long idAnkiety, Date data){
  22. try {
  23.  
  24. this.wyslaneAnkiety.put(idAnkiety,data);
  25. }
  26. catch (Exception e)
  27. {
  28. System.out.println(e);
  29. }
  30. }
  31.  
  32.  
  33. public Date znajdzPoIdAnkiety(Long idAnkiety){
  34. try {
  35. return this.wyslaneAnkiety.get(idAnkiety);
  36. }
  37. catch (Exception e )
  38. {
  39. System.out.println(e);
  40. }
  41. return null;
  42. }
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement