- Sort Score
- Result 10 results
- Languages All
Results 321 - 330 of 1,097 for asdict (0.06 sec)
-
guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java
} public void testToString() { Multimap<String, Integer> multimap = create(); multimap.put("foo", 3); multimap.put("bar", 1); multimap.putAll("foo", asList(-1, 2, 4)); multimap.putAll("bar", asList(2, 3)); multimap.put("foo", 1); assertEquals("{bar=[3, 2, 1], foo=[4, 3, 2, 1, -1]}", multimap.toString()); } public void testGetComparator() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 8.4K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java
*/ public List<Double> asList() { /* * Typically we cache this kind of thing, but much repeated use of this view is a performance * anti-pattern anyway. If we cache, then everyone pays a price in memory footprint even if * they never use this method. */ return new AsList(this); } static class AsList extends AbstractList<Double> implements RandomAccess, Serializable {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 23K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/FloatsTest.java
List<Float> floats = Arrays.asList((float) 0, (float) 1, (float) 2); List<Long> longs = Arrays.asList((long) 0, (long) 1, (long) 2); List<Double> doubles = Arrays.asList((double) 0, (double) 1, (double) 2); assertThat(Floats.toArray(bytes)).isEqualTo(array); assertThat(Floats.toArray(shorts)).isEqualTo(array); assertThat(Floats.toArray(ints)).isEqualTo(array);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 30.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/IntsTest.java
List<Integer> none = Arrays.<Integer>asList(); assertThat(Ints.toArray(none)).isEqualTo(EMPTY); List<Integer> one = Arrays.asList((int) 1); assertThat(Ints.toArray(one)).isEqualTo(ARRAY1); int[] array = {(int) 0, (int) 1, (int) 0xdeadbeef}; List<Integer> three = Arrays.asList((int) 0, (int) 1, (int) 0xdeadbeef); assertThat(Ints.toArray(three)).isEqualTo(array);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 29.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/DoublesTest.java
List<Float> floats = Arrays.asList((float) 0, (float) 1, (float) 2); List<Long> longs = Arrays.asList((long) 0, (long) 1, (long) 2); List<Double> doubles = Arrays.asList((double) 0, (double) 1, (double) 2); assertThat(Doubles.toArray(bytes)).isEqualTo(array); assertThat(Doubles.toArray(shorts)).isEqualTo(array); assertThat(Doubles.toArray(ints)).isEqualTo(array);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 32.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/FloatsTest.java
List<Float> floats = Arrays.asList((float) 0, (float) 1, (float) 2); List<Long> longs = Arrays.asList((long) 0, (long) 1, (long) 2); List<Double> doubles = Arrays.asList((double) 0, (double) 1, (double) 2); assertThat(Floats.toArray(bytes)).isEqualTo(array); assertThat(Floats.toArray(shorts)).isEqualTo(array); assertThat(Floats.toArray(ints)).isEqualTo(array);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 30.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/LongsTest.java
// need explicit type parameter to avoid javac warning!? List<Long> none = Arrays.<Long>asList(); assertThat(Longs.toArray(none)).isEqualTo(EMPTY); List<Long> one = Arrays.asList((long) 1); assertThat(Longs.toArray(one)).isEqualTo(ARRAY1); long[] array = {(long) 0, (long) 1, 0x0FF1C1AL}; List<Long> three = Arrays.asList((long) 0, (long) 1, 0x0FF1C1AL); assertThat(Longs.toArray(three)).isEqualTo(array);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 29.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java
* the License. */ package com.google.common.collect.testing.google; import static com.google.common.collect.testing.Helpers.assertEqualInOrder; import static java.util.Arrays.asList; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.ListMultimap; import java.util.Collection; import org.checkerframework.checker.nullness.qual.Nullable; import org.junit.Ignore;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
} private static class ExpectedHashCode { final byte[] bytes; final int asInt; final Long asLong; // null means that asLong should throw an exception final String toString; ExpectedHashCode(byte[] bytes, int asInt, @Nullable Long asLong, String toString) { this.bytes = bytes; this.asInt = asInt; this.asLong = asLong; this.toString = toString; } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 13.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
} @GwtIncompatible // DoubleMath.log2(double, RoundingMode) public void testRoundLog2Half() { // We don't expect perfect rounding accuracy. for (int exp : asList(-1022, -50, -1, 0, 1, 2, 3, 4, 100, 1022, 1023)) { for (RoundingMode mode : asList(HALF_EVEN, HALF_UP, HALF_DOWN)) { double x = Math.scalb(Math.sqrt(2) + 0.001, exp); double y = Math.scalb(Math.sqrt(2) - 0.001, exp); if (exp < 0) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 27.3K bytes - Viewed (0)