@Test public void testCreateComplementOfInfinitePoint() { Range<Integer> point = Range.create(null, Range.INF); List<Range<Integer>> compList = RangeUtils.createComplement(point); assertEquals(1, compList.size()); assertTrue(compList.get(0).isMinNegInf()); assertTrue(compList.get(0).isMaxInf()); }
public static <T extends Number & Comparable> List<Range<T>> createComplement(Range<T> range) { return subtract(range, new Range<T>(null, false, null, false)); }
RangeUtils { public static <T extends Number & Comparable> List<Range<T>> createComplement(Range<T> range) { return subtract(range, new Range<T>(null, false, null, false)); } }
RangeUtils { public static <T extends Number & Comparable> List<Range<T>> createComplement(Range<T> range) { return subtract(range, new Range<T>(null, false, null, false)); }  }
RangeUtils { public static <T extends Number & Comparable> List<Range<T>> createComplement(Range<T> range) { return subtract(range, new Range<T>(null, false, null, false)); }  static List<Range<T>> createComplement(Range<T> range); static List<Range<T>> createComplement(Collection<Range<T>> ranges); static List<Range<T>> sort(Collection<Range<T>> ranges); static void sortInPlace(List<Range<T>> ranges); static List<Range<T>> simplify(Collection<Range<T>> ranges); static Range<T> intersection(Range<T> r1, Range<T> r2); static List<Range<T>> subtract(Range<T> r1, Range<T> r2); }
RangeUtils { public static <T extends Number & Comparable> List<Range<T>> createComplement(Range<T> range) { return subtract(range, new Range<T>(null, false, null, false)); }  static List<Range<T>> createComplement(Range<T> range); static List<Range<T>> createComplement(Collection<Range<T>> ranges); static List<Range<T>> sort(Collection<Range<T>> ranges); static void sortInPlace(List<Range<T>> ranges); static List<Range<T>> simplify(Collection<Range<T>> ranges); static Range<T> intersection(Range<T> r1, Range<T> r2); static List<Range<T>> subtract(Range<T> r1, Range<T> r2);  }