Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. package com.tool.main;
  2.  
  3. import java.util.List;
  4. import java.util.Map;
  5.  
  6. public interface TTSheet2HashMap {
  7.  
  8. /****************************************** PUBLIC ********************************************/
  9. /**
  10. * Initiates the processing of the sheet to List<Map<String,
  11. * String>>. Only rows for which all values found in the
  12. * columnName2SeachValue map, will be included in the output.
  13. *
  14. * Considers rows within range [start, end].
  15. *
  16. * @param columnName2SeachValue
  17. * Map = ColumnName -> SearchValue
  18. * @param start
  19. * @param end
  20. * @return
  21. */
  22. List<Map<String, String>> load(Map<String, String> columnName2SeachValue, int start, int end);
  23.  
  24. /**
  25. * Initiates the processing of the sheet to List<Map<String,
  26. * String>>. Only rows for which all value found in the
  27. * columnName2SeachValue map, will be included in the output.
  28. *
  29. * Considers all rows.
  30. *
  31. * @param columnName2SeachValue
  32. * Map = ColumnName -> SearchValue
  33. * @return
  34. */
  35. List<Map<String, String>> load(Map<String, String> columnName2SeachValue);
  36.  
  37. /**
  38. * Initiates the processing of the sheet to List<Map<String,
  39. * String>>.
  40. *
  41. * Loads all rows.
  42. *
  43. * @return
  44. */
  45. List<Map<String, String>> load();
  46.  
  47. /**
  48. * Loads rows within range [start, end].
  49. *
  50. * @param start
  51. * @param end
  52. * @return
  53. */
  54. List<Map<String, String>> load(int start, int end);
  55.  
  56. /**
  57. * Returns total number of rows in the sheet.
  58. *
  59. * @return number of rows in the sheet
  60. */
  61. int numberOfRows();
  62.  
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement