Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ImmutableTypeToInstanceMap (0.26 sec)

  1. 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());
      }
    
      /** Returns a new builder. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 01 20:46:24 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  2. 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());
      }
    
      /** Returns a new builder. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 01 20:46:24 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        return suite;
      }
    
      public void testEmpty() {
        assertEquals(0, ImmutableTypeToInstanceMap.of().size());
      }
    
      public void testPrimitiveAndWrapper() {
        ImmutableTypeToInstanceMap<Number> map =
            ImmutableTypeToInstanceMap.<Number>builder()
                .put(Integer.class, 0)
                .put(int.class, 1)
                .build();
        assertEquals(2, map.size());
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        return suite;
      }
    
      public void testEmpty() {
        assertEquals(0, ImmutableTypeToInstanceMap.of().size());
      }
    
      public void testPrimitiveAndWrapper() {
        ImmutableTypeToInstanceMap<Number> map =
            ImmutableTypeToInstanceMap.<Number>builder()
                .put(Integer.class, 0)
                .put(int.class, 1)
                .build();
        assertEquals(2, map.size());
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.NonNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A mutable type-to-instance map. See also {@link ImmutableTypeToInstanceMap}.
     *
     * @author Ben Yu
     * @since 13.0
     */
    @ElementTypesAreNonnullByDefault
    public final class MutableTypeToInstanceMap<B extends @Nullable Object>
    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. android/guava/src/com/google/common/reflect/TypeToInstanceMap.java

     *
     * @param <B> the common supertype that all entries must share; often this is simply {@link Object}
     * @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> {
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Apr 22 01:15:23 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/reflect/TypeToInstanceMap.java

     *
     * @param <B> the common supertype that all entries must share; often this is simply {@link Object}
     * @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> {
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Apr 22 01:15:23 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.NonNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A mutable type-to-instance map. See also {@link ImmutableTypeToInstanceMap}.
     *
     * @author Ben Yu
     * @since 13.0
     */
    @ElementTypesAreNonnullByDefault
    public final class MutableTypeToInstanceMap<B extends @Nullable Object>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Apr 22 01:15:23 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top