@Override IntervalList act(final List<IntervalList> list, final List<IntervalList> unused) { return IntervalList.concatenate(list); } },
@Override IntervalList act(final List<IntervalList> list, final List<IntervalList> unused) { return IntervalList.concatenate(list); } },
/** * A utility function for finding the union of a list of IntervalLists, checks for equal dictionaries. * also looks for overlapping intervals, uniquifies, and sorts (by coordinate) * * @param lists the list of IntervalList * @return the union of all the IntervalLists in lists. */ public static IntervalList union(final Collection<IntervalList> lists) { final IntervalList merged = concatenate(lists); return merged.uniqued(); }
/** * A utility function for finding the union of a list of IntervalLists, checks for equal dictionaries. * also looks for overlapping intervals, uniquifies, and sorts (by coordinate) * * @param lists the list of IntervalList * @return the union of all the IntervalLists in lists. */ public static IntervalList union(final Collection<IntervalList> lists) { final IntervalList merged = concatenate(lists); return merged.uniqued(); }
/** * A utility function for finding the union of a list of IntervalLists, checks for equal dictionaries. * also looks for overlapping intervals, uniquifies, and sorts (by coordinate) * * @param lists the list of IntervalList * @return the union of all the IntervalLists in lists. */ public static IntervalList union(final Collection<IntervalList> lists) { final IntervalList merged = concatenate(lists); return merged.uniqued(); }
@Test(dataProvider = "mergeData") public void testMergeIntervalLists(final List<IntervalList> lists, final IntervalList list) { Assert.assertEquals( CollectionUtil.makeCollection(IntervalList.concatenate(lists).iterator()), CollectionUtil.makeCollection(list.iterator())); }
IntervalList.overlaps(LIST_TO_SCATTER_MANY, IntervalList.invert(IntervalList.concatenate(Arrays.asList( IntervalList.overlaps(LIST_TO_SCATTER_MANY, third), IntervalList.overlaps(LIST_TO_SCATTER_MANY, secondThird))