Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for keyType (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        assertEquals(keyType, TypeToken.of(keyType).resolveType(keyType).getType());
        assertEquals(valueType, TypeToken.of(valueType).resolveType(valueType).getType());
      }
    
      private static final class GenericArray<T> {
        final Type t = new TypeToken<T>(getClass()) {}.getType();
        final Type array = new TypeToken<T[]>(getClass()) {}.getType();
      }
    
      public void testGenericArrayType() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        assertEquals(keyType, TypeToken.of(keyType).resolveType(keyType).getType());
        assertEquals(valueType, TypeToken.of(valueType).resolveType(valueType).getType());
      }
    
      private static final class GenericArray<T> {
        final Type t = new TypeToken<T>(getClass()) {}.getType();
        final Type array = new TypeToken<T[]>(getClass()) {}.getType();
      }
    
      public void testGenericArrayType() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java

            EnumHashBiMap.create(emptyBimap);
        assertEquals(bimap3, emptyBimap);
      }
    
      @GwtIncompatible // keyType
      public void testKeyType() {
        EnumHashBiMap<Currency, String> bimap = EnumHashBiMap.create(Currency.class);
        assertEquals(Currency.class, bimap.keyType());
      }
    
      public void testEntrySet() {
        // Bug 3168290
        Map<Currency, String> map =
            ImmutableMap.of(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertThat(new Entry<String, Integer>() {}.keyType().toString()).isEqualTo("java.lang.String");
      }
    
      private static <K, V> TypeToken<Map<K, V>> mapOf(Class<K> keyType, Class<V> valueType) {
        return new TypeToken<Map<K, V>>() {}.where(new TypeParameter<K>() {}, keyType)
            .where(new TypeParameter<V>() {}, valueType);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 89.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        assertEquals(bimap3, emptyBimap);
      }
    
      @GwtIncompatible // keyType
      public void testKeyType() {
        EnumBiMap<Currency, Country> bimap = EnumBiMap.create(Currency.class, Country.class);
        assertEquals(Currency.class, bimap.keyType());
      }
    
      @GwtIncompatible // valueType
      public void testValueType() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertThat(new Entry<String, Integer>() {}.keyType().toString()).isEqualTo("java.lang.String");
      }
    
      private static <K, V> TypeToken<Map<K, V>> mapOf(Class<K> keyType, Class<V> valueType) {
        return new TypeToken<Map<K, V>>() {}.where(new TypeParameter<K>() {}, keyType)
            .where(new TypeParameter<V>() {}, valueType);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 89.3K bytes
    - Click Count (0)
  7. doc/go_spec.html

    called the key type.
    The <a href="#Representation_of_values">value</a> of an uninitialized map is <code>nil</code>.
    </p>
    
    <pre class="ebnf">
    MapType = "map" "[" KeyType "]" ElementType .
    KeyType = Type .
    </pre>
    
    <p>
    The <a href="#Comparison_operators">comparison operators</a>
    <code>==</code> and <code>!=</code> must be fully defined
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Apr 01 23:39:18 GMT 2026
    - 287.8K bytes
    - Click Count (1)
Back to Top