Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final AtomicLong ts1 = new AtomicLong(1466503200L);
- final AtomicLong ts2 = new AtomicLong(1466593200L);
- final AtomicInteger count = new AtomicInteger(1);
- final Supplier<HashMap<String, Object>> data2 = () -> new HashMap<String, Object>() {{
- put("DATETIME", count.get() % 10 == 0 ? ts2.get() : ts1.get());
- put("COL1", "abc-" + count.get());
- put("COL2", "abd-" + count.get());
- put("ZCOL0", "zero-" + count.get());
- put("COL3", "bbb-" + count.getAndAdd(1));
- }};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement