@Test public void testRange() { for (int i = 0; i < arrayB.length; i++) { boolean check2pointByte = rangeB2bounds.contains(arrayB[i]); boolean check1pointByte = rangeBpoint.contains(arrayB[i]); boolean check2pointUshort = rangeU2bounds.contains(arrayUS[i]); boolean check1pointUshort = rangeUpoint.contains(arrayUS[i]); boolean check2pointShort = rangeS2bounds.contains(arrayS[i]); boolean check1pointShort = rangeSpoint.contains(arrayS[i]); boolean check2pointInt = rangeI2bounds.contains(arrayI[i]); boolean check1pointInt = rangeIpoint.contains(arrayI[i]); boolean check2pointFloat = rangeF2bounds.contains(arrayF[i]); boolean check1pointFloat = rangeFpoint.contains(arrayF[i]); boolean check2pointDouble = rangeD2bounds.contains(arrayD[i]); boolean check1pointDouble = rangeDpoint.contains(arrayD[i]); boolean check2pointLong = rangeL2bounds.contains(arrayL[i]); boolean check1pointLong = rangeLpoint.contains(arrayL[i]); if (i == 2) { assertTrue(check1pointByte); assertTrue(check2pointByte); assertTrue(check1pointUshort); assertTrue(check2pointUshort); assertTrue(check1pointShort); assertTrue(check2pointShort); assertTrue(check1pointInt); assertTrue(check2pointInt); assertTrue(check1pointFloat); assertTrue(check2pointFloat); assertTrue(check1pointDouble); assertTrue(check2pointDouble); assertTrue(check1pointLong); assertTrue(check2pointLong); } else if (i == 3) { assertFalse(check1pointByte); assertTrue(check2pointByte); assertFalse(check1pointUshort); assertTrue(check2pointUshort); assertFalse(check1pointShort); assertTrue(check2pointShort); assertFalse(check1pointInt); assertTrue(check2pointInt); assertFalse(check1pointFloat); assertTrue(check2pointFloat); assertFalse(check1pointDouble); assertTrue(check2pointDouble); assertFalse(check1pointLong); assertTrue(check2pointLong); } else { assertFalse(check1pointByte); assertFalse(check2pointByte); assertFalse(check1pointUshort); assertFalse(check2pointUshort); assertFalse(check1pointShort); assertFalse(check2pointShort); assertFalse(check1pointInt); assertFalse(check2pointInt); assertFalse(check1pointFloat); assertFalse(check2pointFloat); assertFalse(check1pointDouble); assertFalse(check2pointDouble); assertFalse(check1pointLong); assertFalse(check2pointLong); } } }
Range(boolean isMinIncluded, boolean isMaxIncluded) { this.isMaxIncluded = isMaxIncluded; this.isMinIncluded = isMinIncluded; }
Range { Range(boolean isMinIncluded, boolean isMaxIncluded) { this.isMaxIncluded = isMaxIncluded; this.isMinIncluded = isMinIncluded; } }
Range { Range(boolean isMinIncluded, boolean isMaxIncluded) { this.isMaxIncluded = isMaxIncluded; this.isMinIncluded = isMinIncluded; } Range(boolean isMinIncluded, boolean isMaxIncluded); }
Range { Range(boolean isMinIncluded, boolean isMaxIncluded) { this.isMaxIncluded = isMaxIncluded; this.isMinIncluded = isMinIncluded; } Range(boolean isMinIncluded, boolean isMaxIncluded); boolean contains(byte value); boolean contains(short value); boolean contains(int value); boolean contains(float value); boolean contains(double value); boolean contains(long value); boolean containsN(T value); boolean contains(Range other); boolean intersects(Range other); abstract Range intersection(Range other); abstract Range union(Range other); abstract DataType getDataType(); abstract boolean isPoint(); abstract Number getMax(); abstract Number getMin(); abstract Number getMax(boolean isMaxIncluded); abstract Number getMin(boolean isMinIncluded); boolean isNanIncluded(); boolean isNaN(); boolean isMaxIncluded(); boolean isMinIncluded(); @Override boolean equals(Object obj); int compare(Range other); @Override int hashCode(); static int hash(boolean value, int seed); static int hash(double value, int seed); static int hash(long value, int seed); @Override String toString(); }
Range { Range(boolean isMinIncluded, boolean isMaxIncluded) { this.isMaxIncluded = isMaxIncluded; this.isMinIncluded = isMinIncluded; } Range(boolean isMinIncluded, boolean isMaxIncluded); boolean contains(byte value); boolean contains(short value); boolean contains(int value); boolean contains(float value); boolean contains(double value); boolean contains(long value); boolean containsN(T value); boolean contains(Range other); boolean intersects(Range other); abstract Range intersection(Range other); abstract Range union(Range other); abstract DataType getDataType(); abstract boolean isPoint(); abstract Number getMax(); abstract Number getMin(); abstract Number getMax(boolean isMaxIncluded); abstract Number getMin(boolean isMinIncluded); boolean isNanIncluded(); boolean isNaN(); boolean isMaxIncluded(); boolean isMinIncluded(); @Override boolean equals(Object obj); int compare(Range other); @Override int hashCode(); static int hash(boolean value, int seed); static int hash(double value, int seed); static int hash(long value, int seed); @Override String toString();  }