@Test public void testUnionN(){ Range<?> range; range = new Range<Integer>(Integer.class, 0); assertEquals(new Range<Integer>(Integer.class, 0), range); range = range.union(new Range<Integer>(Integer.class, 1)); assertEquals(new Range<Integer>(Integer.class, 0, 1), range); range = range.union(new Range<Integer>(Integer.class, 10, true, 100, false)); assertEquals(new Range<Integer>(Integer.class, 0, true, 100, false ), range); range = range.union(new Range<Integer>(Integer.class, 100, true, 120, false)); assertEquals(new Range<Integer>(Integer.class, 0, true, 120, false), range); }
public Range<?> union(final Range<?> range) throws IllegalArgumentException { return unionNC(ensureCompatible(range)); }
Range implements Serializable { public Range<?> union(final Range<?> range) throws IllegalArgumentException { return unionNC(ensureCompatible(range)); } }
Range implements Serializable { public Range<?> union(final Range<?> range) throws IllegalArgumentException { return unionNC(ensureCompatible(range)); } Range(final Class<T> elementClass, final T value);  Range(final Class<T> elementClass, final T minValue, final T maxValue);  Range(final Class<T> elementClass,
                 final T minValue, final boolean isMinIncluded,
                 final T maxValue, final boolean isMaxIncluded); }
Range implements Serializable { public Range<?> union(final Range<?> range) throws IllegalArgumentException { return unionNC(ensureCompatible(range)); } Range(final Class<T> elementClass, final T value);  Range(final Class<T> elementClass, final T minValue, final T maxValue);  Range(final Class<T> elementClass,
                 final T minValue, final boolean isMinIncluded,
                 final T maxValue, final boolean isMaxIncluded); Class<T> getElementClass(); T getMinValue(); boolean isMinIncluded(); T getMaxValue(); boolean isMaxIncluded(); boolean isEmpty(); boolean contains(final Comparable<?> value); boolean contains(final Range<?> range); boolean intersects(final Range<?> range); Range<?> intersect(final Range<?> range); Range<?>[] subtract(final Range<?> range); Range<?> union(final Range<?> range); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
Range implements Serializable { public Range<?> union(final Range<?> range) throws IllegalArgumentException { return unionNC(ensureCompatible(range)); } Range(final Class<T> elementClass, final T value);  Range(final Class<T> elementClass, final T minValue, final T maxValue);  Range(final Class<T> elementClass,
                 final T minValue, final boolean isMinIncluded,
                 final T maxValue, final boolean isMaxIncluded); Class<T> getElementClass(); T getMinValue(); boolean isMinIncluded(); T getMaxValue(); boolean isMaxIncluded(); boolean isEmpty(); boolean contains(final Comparable<?> value); boolean contains(final Range<?> range); boolean intersects(final Range<?> range); Range<?> intersect(final Range<?> range); Range<?>[] subtract(final Range<?> range); Range<?> union(final Range<?> range); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }