Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for subtree (0.19 sec)

  1. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       * @throws IllegalArgumentException if any two keys are equal according to their natural ordering
       */
      public static <K, V> ImmutableSortedMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
        // Hack around K not being a subtype of Comparable.
        // Unsafe, see ImmutableSortedSetFauxverideShim.
        @SuppressWarnings("unchecked")
        Ordering<K> naturalOrder = (Ordering<K>) NATURAL_ORDER;
        return copyOfInternal(map, naturalOrder);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSortedMap.java

       * @throws IllegalArgumentException if any two keys are equal according to their natural ordering
       */
      public static <K, V> ImmutableSortedMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
        // Hack around K not being a subtype of Comparable.
        // Unsafe, see ImmutableSortedSetFauxverideShim.
        @SuppressWarnings("unchecked")
        Ordering<K> naturalOrder = (Ordering<K>) NATURAL_ORDER;
        return copyOfInternal(map, naturalOrder);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        }
        ParameterizedType subtype =
            (ParameterizedType)
                new TypeToken<BaseWithTypeVar<List<?>>>() {}.getSubtype(Outer.Sub.class).getType();
        assertEquals(Outer.Sub.class, subtype.getRawType());
        assertThat(subtype.getActualTypeArguments()[0]).isInstanceOf(WildcardType.class);
        ParameterizedType owner = (ParameterizedType) subtype.getOwnerType();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/TypeToken.java

        @SuppressWarnings("unchecked") // guarded by the isAssignableFrom() statement above
        TypeToken<? extends T> subtype = (TypeToken<? extends T>) of(resolvedTypeArgs);
        checkArgument(
            subtype.isSubtypeOf(this), "%s does not appear to be a subtype of %s", subtype, this);
        return subtype;
      }
    
      /**
       * Returns true if this type is a supertype of the given {@code type}. "Supertype" is defined
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        }
        ParameterizedType subtype =
            (ParameterizedType)
                new TypeToken<BaseWithTypeVar<List<?>>>() {}.getSubtype(Outer.Sub.class).getType();
        assertEquals(Outer.Sub.class, subtype.getRawType());
        assertThat(subtype.getActualTypeArguments()[0]).isInstanceOf(WildcardType.class);
        ParameterizedType owner = (ParameterizedType) subtype.getOwnerType();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
Back to top