- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 680 for valueOf (1.47 sec)
-
guava-tests/test/com/google/common/collect/IteratorsTest.java
new Function<String, Integer>() { @Override public Integer apply(String from) { return Integer.valueOf(from); } }); assertEquals(Integer.valueOf(1), iterator.next()); assertEquals(Integer.valueOf(2), iterator.next()); iterator.remove(); assertEquals(asList("1", "3"), list); } public void testPoorlyBehavedTransform() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 55.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java
@Override public SampleElements<BigInteger> samples() { return new SampleElements<>( BigInteger.valueOf(1), BigInteger.valueOf(4), BigInteger.valueOf(3), BigInteger.valueOf(2), BigInteger.valueOf(5)); } @Override public BigInteger[] createArray(int length) { return new BigInteger[length]; } @Override
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 21.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/SignedBytesTest.java
} private static void assertCastFails(long value) { try { SignedBytes.checkedCast(value); fail("Cast to byte should have failed: " + value); } catch (IllegalArgumentException ex) { assertWithMessage(value + " not found in exception text: " + ex.getMessage()) .that(ex.getMessage().contains(String.valueOf(value))) .isTrue(); }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/MathTesting.java
// First add all the integer candidate values. longValues.addAll(Iterables.transform(POSITIVE_INTEGER_CANDIDATES, TO_LONG)); // Add boundary values manually to avoid over/under flow (this covers 2^N for 31 and 63). longValues.add(Integer.MAX_VALUE + 1L, Long.MAX_VALUE - 1L, Long.MAX_VALUE); // Now add values near 2^N for lots of values of N. for (int exponent : asList(32, 33, 39, 40, 41, 47, 48, 49, 55, 56, 57)) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 11.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
checkBigIntegerConversion("0.0.0.1", BigInteger.ONE); checkBigIntegerConversion("127.255.255.255", BigInteger.valueOf(Integer.MAX_VALUE)); checkBigIntegerConversion( "255.255.255.254", BigInteger.valueOf(Integer.MAX_VALUE).multiply(BigInteger.valueOf(2))); checkBigIntegerConversion( "255.255.255.255", BigInteger.ONE.shiftLeft(32).subtract(BigInteger.ONE)); }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 31.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/DiscreteDomain.java
/** * Returns the unique greatest value of type {@code C} that is less than {@code value}, or {@code * null} if none exists. Inverse operation to {@link #next}. * * @param value any value of type {@code C} * @return the greatest value less than {@code value}, or {@code null} if {@code value} is {@code * minValue()} */ @CheckForNull public abstract C previous(C value); /**
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 10.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java
public BigInteger apply(Integer from) { BigInteger v = BigInteger.valueOf(from); // Math.sin is very slow for values outside 4*pi // Need to take absolute value to avoid inverting the value. for (double i = 0; i < 100; i += 20) { v = v.add( v.multiply( BigInteger.valueOf(((Double) Math.abs(Math.sin(i) * 10.0)).longValue()))); } return v;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 4.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/EquivalenceTest.java
SerializableTester.reserializeAndAssert(Equivalence.identity()); } private static class IntValue { private final int value; IntValue(int value) { this.value = value; } @Override public String toString() { return "value = " + value; } } public void testOnResultOf() { EquivalenceTester.of(Equivalence.equals().onResultOf(Functions.toStringFunction()))
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 6.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/DoubleMathTest.java
private static final BigDecimal MAX_INT_AS_BIG_DECIMAL = BigDecimal.valueOf(Integer.MAX_VALUE); private static final BigDecimal MIN_INT_AS_BIG_DECIMAL = BigDecimal.valueOf(Integer.MIN_VALUE); private static final BigDecimal MAX_LONG_AS_BIG_DECIMAL = BigDecimal.valueOf(Long.MAX_VALUE); private static final BigDecimal MIN_LONG_AS_BIG_DECIMAL = BigDecimal.valueOf(Long.MIN_VALUE); public void testConstantsMaxFactorial() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Feb 07 17:50:39 GMT 2024 - 28.1K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Joiner.java
/** * Returns a {@code MapJoiner} using the given key-value separator, and the same configuration as * this {@code Joiner} otherwise. * * @since 20.0 */ public MapJoiner withKeyValueSeparator(char keyValueSeparator) { return withKeyValueSeparator(String.valueOf(keyValueSeparator)); } /** * Returns a {@code MapJoiner} using the given key-value separator, and the same configuration as
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Dec 15 19:31:54 GMT 2023 - 18.6K bytes - Viewed (0)