Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. public static List<Integer> joinList(List<Integer> list, Integer data) {
  2. list.add(data == null ? 0 : data);
  3. return list;
  4. }
  5.  
  6. public static List<Long> joinList(List<Long> list, Long data) {
  7. list.add(data == null ? 0 : data);
  8. return list;
  9. }
  10.  
  11. public static List<Double> joinList(List<Double> list, Double data) {
  12. list.add(data == null ? 0.00 : data);
  13. return list;
  14. }
  15.  
  16. public static List<String> joinList(List<String> list, String data) {
  17. list.add(StringUtils.isEmpty(data) ? "-" : data);
  18. return list;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement