Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for rejectTypeVariables (0.28 sec)

  1. 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.
         *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 20:46:24 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

        return trustedGet(TypeToken.of(type));
      }
    
      @Override
      @CheckForNull
      public <T extends @NonNull B> T getInstance(TypeToken<T> type) {
        return trustedGet(type.rejectTypeVariables());
      }
    
      @Override
      @CanIgnoreReturnValue
      @CheckForNull
      public <T extends B> T putInstance(Class<@NonNull T> type, @ParametricNullness T value) {
        return trustedPut(TypeToken.of(type), value);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Apr 22 01:15:23 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  3. 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();
      }
    
    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-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();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (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(
    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)
Back to top