- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 53 for ValueOf (0.34 sec)
-
android/guava-tests/test/com/google/common/collect/SpecialRandom.java
* benchmark parameter. * * <p>TODO: Remove this class once Caliper has a better way. * * @author Nicholaus Shupe */ public final class SpecialRandom extends Random { public static SpecialRandom valueOf(String s) { return (s.length() == 0) ? new SpecialRandom() : new SpecialRandom(Long.parseLong(s)); } private final boolean hasSeed; private final long seed; public SpecialRandom() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 1.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Apr 17 15:49:06 GMT 2023 - 4.2K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/Fingerprint2011Test.java
assertEquals( 1618900948208871284L, Fingerprint2011.murmurHash64WithSeed(bytes, 0, bytes.length, 1)); bytes = "test test test".getBytes(UTF_8); assertEquals( UnsignedLong.valueOf("12313169684067793560").longValue(), Fingerprint2011.murmurHash64WithSeed(bytes, 0, bytes.length, 1)); } public void testPutNonChars() { Hasher hasher = HASH_FN.newHasher();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Dec 29 14:55:25 GMT 2021 - 7.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/HashBiMapTest.java
Entry<Integer, String> entry = iterator.next(); entry.setValue("two"); // changes the iterator's current entry value assertEquals("two", map.get(1)); assertEquals(Integer.valueOf(1), map.inverse().get("two")); iterator.remove(); // removes the updated entry assertTrue(map.isEmpty()); } public void testInsertionOrder() { BiMap<String, Integer> map = HashBiMap.create();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 8.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java
for (int i = 0; i < 100; i++) { builder.put(Range.closedOpen(i, i + 1), i); } ImmutableRangeMap<Integer, Integer> map = builder.build(); for (int i = 0; i < 100; i++) { assertEquals(Integer.valueOf(i), map.get(i)); } } @AndroidIncompatible // slow public void testAsMapOfRanges() { for (Range<Integer> range1 : RANGES) { for (Range<Integer> range2 : RANGES) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 9.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/HashBiMapTest.java
Entry<Integer, String> entry = iterator.next(); entry.setValue("two"); // changes the iterator's current entry value assertEquals("two", map.get(1)); assertEquals(Integer.valueOf(1), map.inverse().get("two")); iterator.remove(); // removes the updated entry assertTrue(map.isEmpty()); } public void testInsertionOrder() { BiMap<String, Integer> map = HashBiMap.create();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 8.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/xml/XmlEscapersTest.java
assertEscaping(xmlEscaper, "'", ch); } else if (shouldEscapeQuotes && ch == '"') { assertEscaping(xmlEscaper, """, ch); } else { String input = String.valueOf(ch); String escaped = xmlEscaper.escape(input); assertEquals( "char 0x" + Integer.toString(ch, 16) + " should not be escaped", input, escaped); } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Dec 16 19:54:45 GMT 2020 - 4.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/Fingerprint2011Test.java
assertEquals( 1618900948208871284L, Fingerprint2011.murmurHash64WithSeed(bytes, 0, bytes.length, 1)); bytes = "test test test".getBytes(UTF_8); assertEquals( UnsignedLong.valueOf("12313169684067793560").longValue(), Fingerprint2011.murmurHash64WithSeed(bytes, 0, bytes.length, 1)); } public void testPutNonChars() { Hasher hasher = HASH_FN.newHasher();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Dec 29 14:55:25 GMT 2021 - 7.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 17 15:49:06 GMT 2023 - 4.2K bytes - Viewed (0)