- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 426 for unnecessary (0.06 sec)
-
guava/src/com/google/common/base/Charsets.java
* * <p><b>Note:</b> this constant is now unnecessary and should be treated as deprecated; use * {@link StandardCharsets#ISO_8859_1} instead. * */ public static final Charset ISO_8859_1 = StandardCharsets.ISO_8859_1; /** * UTF-8: eight-bit UCS Transformation Format. * * <p><b>Note:</b> this constant is now unnecessary and should be treated as deprecated; use
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Jul 25 23:55:36 UTC 2024 - 3.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/DoubleMathTest.java
// every mode except UNNECESSARY BigDecimal expected = new BigDecimal(d).setScale(0, UNNECESSARY); boolean isInBounds = expected.compareTo(MAX_LONG_AS_BIG_DECIMAL) <= 0 & expected.compareTo(MIN_LONG_AS_BIG_DECIMAL) >= 0; try { assertEquals(expected.longValue(), DoubleMath.roundToLong(d, UNNECESSARY)); assertTrue(isInBounds);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 27.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
} catch (ArithmeticException expected) { // do nothing } if (expectedDouble != null) { assertThat(LongMath.roundToDouble(candidate, UNNECESSARY)).isEqualTo(expectedDouble); } else { assertThrows( ArithmeticException.class, () -> LongMath.roundToDouble(candidate, UNNECESSARY)); } } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 30.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
// every mode except UNNECESSARY BigDecimal expected = new BigDecimal(d).setScale(0, UNNECESSARY); boolean isInBounds = expected.compareTo(MAX_LONG_AS_BIG_DECIMAL) <= 0 & expected.compareTo(MIN_LONG_AS_BIG_DECIMAL) >= 0; try { assertEquals(expected.longValue(), DoubleMath.roundToLong(d, UNNECESSARY)); assertTrue(isInBounds);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 27.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java
if (!expectedValues.containsKey(UNNECESSARY)) { assertWithMessage("Expected roundUnnecessaryShouldThrow call") .that(unnecessaryShouldThrow) .isTrue(); assertThrows( "Expected ArithmeticException for roundToDouble(" + input + ", UNNECESSARY)", ArithmeticException.class, () -> BigDecimalMath.roundToDouble(input, UNNECESSARY)); } } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 10.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/IntMathTest.java
import static com.google.common.math.TestPlatform.intsCanGoOutOfRange; import static java.lang.Math.min; import static java.math.BigInteger.valueOf; import static java.math.RoundingMode.FLOOR; import static java.math.RoundingMode.UNNECESSARY; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.testing.NullPointerTester;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 23.1K bytes - Viewed (0) -
guava/src/com/google/common/math/BigIntegerMath.java
* is not a power of two */ @SuppressWarnings("fallthrough") // TODO(kevinb): remove after this warning is disabled globally public static int log2(BigInteger x, RoundingMode mode) { checkPositive("x", checkNotNull(x)); int logFloor = x.bitLength() - 1; switch (mode) { case UNNECESSARY:
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 18.8K bytes - Viewed (0) -
android/guava/src/com/google/common/math/ToDoubleRounder.java
case UP: return roundArbitrarily; case UNNECESSARY: throw new ArithmeticException(x + " cannot be represented precisely as a double"); } } X roundArbitrarilyAsX = toX(roundArbitrarily, RoundingMode.UNNECESSARY); int cmpXToRoundArbitrarily = x.compareTo(roundArbitrarilyAsX); switch (mode) { case UNNECESSARY: checkRoundingUnnecessary(cmpXToRoundArbitrarily == 0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
import static com.google.common.math.TestPlatform.intsCanGoOutOfRange; import static java.lang.Math.min; import static java.math.BigInteger.valueOf; import static java.math.RoundingMode.FLOOR; import static java.math.RoundingMode.UNNECESSARY; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.common.testing.NullPointerTester;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 23.1K bytes - Viewed (0) -
guava/src/com/google/common/math/ToDoubleRounder.java
case UP: return roundArbitrarily; case UNNECESSARY: throw new ArithmeticException(x + " cannot be represented precisely as a double"); } } X roundArbitrarilyAsX = toX(roundArbitrarily, RoundingMode.UNNECESSARY); int cmpXToRoundArbitrarily = x.compareTo(roundArbitrarilyAsX); switch (mode) { case UNNECESSARY: checkRoundingUnnecessary(cmpXToRoundArbitrarily == 0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 5.8K bytes - Viewed (0)