Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for TypeToInstanceMap (0.16 sec)

  1. android/guava/src/com/google/common/reflect/TypeToInstanceMap.java

     * @author Ben Yu
     * @since 13.0
     */
    @DoNotMock("Use ImmutableTypeToInstanceMap or MutableTypeToInstanceMap")
    @ElementTypesAreNonnullByDefault
    public interface TypeToInstanceMap<B extends @Nullable Object>
        extends Map<TypeToken<? extends @NonNull B>, B> {
    
      /**
       * Returns the value the specified class is mapped to, or {@code null} if no entry for this class
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Apr 22 01:15:23 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/reflect/TypeToInstanceMap.java

     * @author Ben Yu
     * @since 13.0
     */
    @DoNotMock("Use ImmutableTypeToInstanceMap or MutableTypeToInstanceMap")
    @ElementTypesAreNonnullByDefault
    public interface TypeToInstanceMap<B extends @Nullable Object>
        extends Map<TypeToken<? extends @NonNull B>, B> {
    
      /**
       * Returns the value the specified class is mapped to, or {@code null} if no entry for this class
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Apr 22 01:15:23 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ClassToInstanceMap.java

     *
     * <ul>
     *   <li>{@link ImmutableClassToInstanceMap}
     *   <li>{@link MutableClassToInstanceMap}
     * </ul>
     *
     * <p>To map a generic type to an instance of that type, use {@link
     * com.google.common.reflect.TypeToInstanceMap} instead.
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#classtoinstancemap">{@code
     * ClassToInstanceMap}</a>.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ClassToInstanceMap.java

     *
     * <ul>
     *   <li>{@link ImmutableClassToInstanceMap}
     *   <li>{@link MutableClassToInstanceMap}
     * </ul>
     *
     * <p>To map a generic type to an instance of that type, use {@link
     * com.google.common.reflect.TypeToInstanceMap} instead.
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#classtoinstancemap">{@code
     * ClassToInstanceMap}</a>.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

     * @author Ben Yu
     * @since 13.0
     */
    @ElementTypesAreNonnullByDefault
    public final class MutableTypeToInstanceMap<B extends @Nullable Object>
        extends ForwardingMap<TypeToken<? extends @NonNull B>, B> implements TypeToInstanceMap<B> {
    
      private final Map<TypeToken<? extends @NonNull B>, B> backingMap = Maps.newHashMap();
    
      @Override
      @CheckForNull
      public <T extends @NonNull B> T getInstance(Class<T> type) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Apr 22 01:15:23 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/reflect/ImmutableTypeToInstanceMap.java

     *
     * @author Ben Yu
     * @since 13.0
     */
    @ElementTypesAreNonnullByDefault
    public final class ImmutableTypeToInstanceMap<B> extends ForwardingMap<TypeToken<? extends B>, B>
        implements TypeToInstanceMap<B> {
    
      /** Returns an empty type to instance map. */
      public static <B> ImmutableTypeToInstanceMap<B> of() {
        return new ImmutableTypeToInstanceMap<>(ImmutableMap.<TypeToken<? extends B>, B>of());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 01 20:46:24 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

     * @author Ben Yu
     * @since 13.0
     */
    @ElementTypesAreNonnullByDefault
    public final class MutableTypeToInstanceMap<B extends @Nullable Object>
        extends ForwardingMap<TypeToken<? extends @NonNull B>, B> implements TypeToInstanceMap<B> {
    
      private final Map<TypeToken<? extends @NonNull B>, B> backingMap = Maps.newHashMap();
    
      @Override
      @CheckForNull
      public <T extends @NonNull B> T getInstance(Class<T> type) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Apr 22 01:15:23 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/ImmutableTypeToInstanceMap.java

     *
     * @author Ben Yu
     * @since 13.0
     */
    @ElementTypesAreNonnullByDefault
    public final class ImmutableTypeToInstanceMap<B> extends ForwardingMap<TypeToken<? extends B>, B>
        implements TypeToInstanceMap<B> {
    
      /** Returns an empty type to instance map. */
      public static <B> ImmutableTypeToInstanceMap<B> of() {
        return new ImmutableTypeToInstanceMap<>(ImmutableMap.<TypeToken<? extends B>, B>of());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 01 20:46:24 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

                    CollectionSize.ANY,
                    MapFeature.ALLOWS_ANY_NULL_QUERIES)
                .createTestSuite());
    
        return suite;
      }
    
      private TypeToInstanceMap<Object> map;
    
      @Override
      protected void setUp() throws Exception {
        map = new MutableTypeToInstanceMap<>();
      }
    
      public void testPutThrows() {
        assertThrows(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/reflect/TypeToken.java

        return of(new TypeResolver().resolveType(runtimeType));
      }
    
      /**
       * 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) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 53.6K bytes
    - Viewed (0)
Back to top