Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for rejectTypeVariables (0.11 seconds)

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

      private static void assertHasTypeVariable(Type type) {
        try {
          TypeToken.of(type).rejectTypeVariables();
          fail("Should contain TypeVariable");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      private static void assertNoTypeVariable(Type type) {
        TypeToken.of(type).rejectTypeVariables();
      }
    
    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)
  2. android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

        return trustedGet(TypeToken.of(type));
      }
    
      @Override
      public <T extends @NonNull B> @Nullable T getInstance(TypeToken<T> type) {
        return trustedGet(type.rejectTypeVariables());
      }
    
      @Override
      @CanIgnoreReturnValue
      public <T extends B> @Nullable T putInstance(
          Class<@NonNull T> type, @ParametricNullness T value) {
        return trustedPut(TypeToken.of(type), value);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/reflect/ImmutableTypeToInstanceMap.java

         * and will cause {@link #build} to fail.
         */
        @CanIgnoreReturnValue
        public <T extends B> Builder<B> put(TypeToken<T> key, T value) {
          mapBuilder.put(key.rejectTypeVariables(), value);
          return this;
        }
    
        /**
         * Returns a new immutable type-to-instance map containing the entries provided to this builder.
         *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      private static void assertHasTypeVariable(Type type) {
        try {
          TypeToken.of(type).rejectTypeVariables();
          fail("Should contain TypeVariable");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      private static void assertNoTypeVariable(Type type) {
        TypeToken.of(type).rejectTypeVariables();
      }
    
    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/src/com/google/common/reflect/TypeToken.java

      /**
       * Ensures that this type token doesn't contain type variables, which can cause unchecked type
       * errors for callers like {@link TypeToInstanceMap}.
       */
      @CanIgnoreReturnValue
      final TypeToken<T> rejectTypeVariables() {
        new TypeVisitor() {
          @Override
          void visitTypeVariable(TypeVariable<?> type) {
            throw new IllegalArgumentException(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 53.8K bytes
    - Click Count (0)
Back to Top