Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for putInstance (0.08 sec)

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

        assertNull(map.putInstance(int.class, 0));
        assertNull(map.putInstance(Integer.class, 1));
        assertEquals(2, map.size());
    
        assertEquals(0, (int) map.getInstance(int.class));
        assertEquals(1, (int) map.getInstance(Integer.class));
    
        assertEquals(0, (int) map.putInstance(int.class, null));
        assertEquals(1, (int) map.putInstance(Integer.class, null));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java

        assertNull(map.putInstance(int.class, 0));
        assertNull(map.putInstance(Integer.class, 1));
        assertEquals(2, map.size());
    
        assertEquals(0, (int) map.getInstance(int.class));
        assertEquals(1, (int) map.getInstance(Integer.class));
    
        assertEquals(0, (int) map.putInstance(int.class, null));
        assertEquals(1, (int) map.putInstance(Integer.class, null));
    
        assertNull(map.getInstance(int.class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

      }
    
      @Override
      @CanIgnoreReturnValue
      @CheckForNull
      public <T extends B> T putInstance(Class<@NonNull T> type, @ParametricNullness T value) {
        return trustedPut(TypeToken.of(type), value);
      }
    
      @Override
      @CanIgnoreReturnValue
      @CheckForNull
      public <T extends B> T putInstance(TypeToken<@NonNull T> type, @ParametricNullness T value) {
        return this.<T>trustedPut(type.rejectTypeVariables(), value);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

      }
    
      @Override
      @CanIgnoreReturnValue
      @CheckForNull
      public <T extends B> T putInstance(Class<@NonNull T> type, @ParametricNullness T value) {
        return trustedPut(TypeToken.of(type), value);
      }
    
      @Override
      @CanIgnoreReturnValue
      @CheckForNull
      public <T extends B> T putInstance(TypeToken<@NonNull T> type, @ParametricNullness T value) {
        return this.<T>trustedPut(type.rejectTypeVariables(), value);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java

          cast(entry.getKey(), entry.getValue());
        }
        super.putAll(copy);
      }
    
      @CanIgnoreReturnValue
      @Override
      @CheckForNull
      public <T extends B> T putInstance(Class<@NonNull T> type, @ParametricNullness T value) {
        return cast(type, put(type, value));
      }
    
      @Override
      @CheckForNull
      public <T extends @NonNull B> T getInstance(Class<T> type) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/NullPointerTester.java

       * Sets a default value that can be used for any parameter of type {@code type}. Returns this
       * object.
       */
      @CanIgnoreReturnValue
      public <T> NullPointerTester setDefault(Class<T> type, T value) {
        defaults.putInstance(type, checkNotNull(value));
        return this;
      }
    
      /**
       * Ignore {@code method} in the tests that follow. Returns this object.
       *
       * @since 13.0
       */
      @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

       * Sets a default value that can be used for any parameter of type {@code type}. Returns this
       * object.
       */
      @CanIgnoreReturnValue
      public <T> NullPointerTester setDefault(Class<T> type, T value) {
        defaults.putInstance(type, checkNotNull(value));
        return this;
      }
    
      /**
       * Ignore {@code method} in the tests that follow. Returns this object.
       *
       * @since 13.0
       */
      @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       */
      @CanIgnoreReturnValue
      public <T> ClassSanityTester setDefault(Class<T> type, T value) {
        nullPointerTester.setDefault(type, value);
        defaultValues.putInstance(type, value);
        return this;
      }
    
      /**
       * Sets distinct values for {@code type}, so that when a class {@code Foo} is tested for {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top