Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 659 for to_string (0.29 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

     *
     * @author mike nonemacher
     */
    public class CacheReferencesTest extends TestCase {
    
      private static final CacheLoader<Key, String> KEY_TO_STRING_LOADER =
          new CacheLoader<Key, String>() {
            @Override
            public String load(Key key) {
              return key.toString();
            }
          };
    
      private CacheBuilderFactory factoryWithAllKeyStrengths() {
        return new CacheBuilderFactory()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

        assertEquals("{bar=[1, 4], foo=[3, 2, 5]}", map.toString());
        assertEquals("[bar=1, foo=3, foo=2, bar=4, foo=5]", map.entries().toString());
      }
    
      public void testLinkedPutInOrder() {
        Multimap<String, Integer> map = create();
        map.put("foo", 1);
        map.put("bar", 2);
        map.put("bar", 3);
        assertEquals("{foo=[1], bar=[2, 3]}", map.toString());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/AbstractInvocationHandler.java

        return super.hashCode();
      }
    
      /**
       * By default delegates to {@link Object#toString}. The dynamic proxies' {@code toString()} will
       * delegate to this method. Subclasses can override this method to provide custom string
       * representation for the proxies.
       */
      @Override
      public String toString() {
        return super.toString();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/HashingTest.java

            .testEquals();
    
        assertEquals(hashFunction1a.toString(), hashFunction1b.toString());
        assertEquals(hashFunction2a.toString(), hashFunction2b.toString());
        assertEquals(hashFunction3a.toString(), hashFunction3b.toString());
        assertEquals(hashFunction4a.toString(), hashFunction4b.toString());
      }
    
      static void assertSeedlessHashFunctionEquals(Class<?> clazz) throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

            assertThat(value.toString(radix)).isEqualTo(value.bigIntegerValue().toString(radix));
          }
        }
      }
    
      public void testToStringRadixQuick() {
        int[] radices = {2, 3, 5, 7, 10, 12, 16, 21, 31, 36};
        for (int radix : radices) {
          for (int l : TEST_INTS) {
            UnsignedInteger value = UnsignedInteger.fromIntBits(l);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/AbstractImmutableSortedMapMapInterfaceTest.java

          assertEquals(entry.getKey() + "=" + entry.getValue(), entry.toString());
        }
    
        assertEquals("{" + joiner.join(map.entrySet()) + "}", map.toString());
        assertEquals("[" + joiner.join(map.entrySet()) + "]", map.entrySet().toString());
        assertEquals("[" + joiner.join(map.keySet()) + "]", map.keySet().toString());
        assertEquals("[" + joiner.join(map.values()) + "]", map.values().toString());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 17 01:34:55 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          assertThat(unsignedValue.toString()).isEqualTo(unsignedValue.bigIntegerValue().toString());
        }
      }
    
      @GwtIncompatible // too slow
      public void testToStringRadix() {
        for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
          for (long l : TEST_LONGS) {
            UnsignedLong value = UnsignedLong.fromLongBits(l);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

        for (int i = 0; i < ARRAY_SIZE; i++) {
          longs[i] = random();
          divisors[i] = randomDivisor(longs[i]);
          decimalStrings[i] = UnsignedLongs.toString(longs[i]);
          binaryStrings[i] = UnsignedLongs.toString(longs[i], 2);
          hexStrings[i] = UnsignedLongs.toString(longs[i], 16);
          prefixedHexStrings[i] = "0x" + hexStrings[i];
        }
      }
    
      @Benchmark
      long divide(int reps) {
        long tmp = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Joiner.java

            Entry<?, ?> entry = parts.next();
            appendable.append(joiner.toString(entry.getKey()));
            appendable.append(keyValueSeparator);
            appendable.append(joiner.toString(entry.getValue()));
            while (parts.hasNext()) {
              appendable.append(joiner.separator);
              Entry<?, ?> e = parts.next();
              appendable.append(joiner.toString(e.getKey()));
              appendable.append(keyValueSeparator);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/ValueGraphTest.java

        assertThat(graph.edgeValueOrDefault(4, 4, DEFAULT)).isEqualTo("valueD");
    
        String toString = graph.toString();
        assertThat(toString).contains("valueA");
        assertThat(toString).contains("valueB");
        assertThat(toString).contains("valueC");
        assertThat(toString).contains("valueD");
      }
    
      @Test
      public void undirectedGraph() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 17.4K bytes
    - Viewed (0)
Back to top