Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ImmutableRangeSet<LocalTime> r1 = new ImmutableRangeSet.Builder<LocalTime>().add(Range.openClosed(new LocalTime(8, 0, 0), new LocalTime(10, 0, 0))).build();
- ImmutableRangeSet<LocalTime> r2 = new ImmutableRangeSet.Builder<LocalTime>().add(Range.openClosed(new LocalTime(9, 0, 0), new LocalTime(11, 0, 0))).build();
- ImmutableRangeSet<LocalTime> result = new ImmutableRangeSet.Builder<LocalTime>().addAll(r1).addAll(r2).build();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement