Guest User

Untitled

a guest
Oct 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. private static class OutputProbe
  2. implements Output<String, String> {
  3.  
  4. public List<String> keys = Collections
  5. .synchronizedList(new ArrayList<String>());
  6.  
  7. public List<String> values = Collections
  8. .synchronizedList(new ArrayList<String>());
  9.  
  10. public void write(String key, String value) {
  11. if (key == null || value == null) {
  12. keys.size();
  13. }
  14. keys.add(key);
  15. values.add(value);
  16. }
  17.  
  18. public void close() {
  19. // Do nothing
  20. }
  21. }
Add Comment
Please, Sign In to add comment