Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for TypeToken (0.07 sec)

  1. android/guava-testlib/src/com/google/common/testing/DummyProxy.java

      }
    
      /** Returns the dummy return value for {@code returnType}. */
      abstract <R> @Nullable R dummyReturnValue(TypeToken<R> returnType);
    
      private class DummyHandler extends AbstractInvocationHandler implements Serializable {
        private final TypeToken<?> interfaceType;
    
        DummyHandler(TypeToken<?> interfaceType) {
          this.interfaceType = interfaceType;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 08 17:31:55 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

                new TypeToken<Class3<String>>() {},
                new TypeToken<Interface3<String>>() {},
                new TypeToken<Iterable<String>>() {},
                TypeToken.of(Class2.class),
                TypeToken.of(Interface12.class),
                TypeToken.of(Interface1.class),
                TypeToken.of(Interface2.class),
                TypeToken.of(Class1.class),
                TypeToken.of(Object.class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        assertFreshInstance(new TypeToken<List<String>>() {});
        assertNotInstantiable(new TypeToken<List<EmptyEnum>>() {});
      }
    
      public void testArrayList() {
        assertFreshInstance(new TypeToken<ArrayList<String>>() {});
        assertNotInstantiable(new TypeToken<ArrayList<EmptyEnum>>() {});
      }
    
      public void testLinkedList() {
        assertFreshInstance(new TypeToken<LinkedList<String>>() {});
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 17.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        assertNull(map.get(TypeToken.of(Integer.class)));
        assertNull(map.getInstance(Integer.class));
    
        map.putInstance(Long.class, null);
        assertTrue(map.containsKey(TypeToken.of(Long.class)));
        assertTrue(map.entrySet().contains(immutableEntry(TypeToken.of(Long.class), null)));
        assertNull(map.get(TypeToken.of(Long.class)));
        assertNull(map.getInstance(Long.class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

        TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {};
        Class<?> subclass = new Mall<Outdoor>().new Shop<Grocery>() {}.getClass();
        assertFalse(TypeToken.of(subclass).isSubtypeOf(supertype));
      }
    
      @SuppressWarnings("RestrictedApiChecker") // crashes under JDK8, which EP no longer supports
      public static void testSubtypeOfInnerClass_staticAnonymousClass() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

                new TypeToken<Class3<String>>() {},
                new TypeToken<Interface3<String>>() {},
                new TypeToken<Iterable<String>>() {},
                TypeToken.of(Class2.class),
                TypeToken.of(Interface12.class),
                TypeToken.of(Interface1.class),
                TypeToken.of(Interface2.class),
                TypeToken.of(Class1.class),
                TypeToken.of(Object.class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        assertFreshInstance(new TypeToken<List<String>>() {});
        assertNotInstantiable(new TypeToken<List<EmptyEnum>>() {});
      }
    
      public void testArrayList() {
        assertFreshInstance(new TypeToken<ArrayList<String>>() {});
        assertNotInstantiable(new TypeToken<ArrayList<EmptyEnum>>() {});
      }
    
      public void testLinkedList() {
        assertFreshInstance(new TypeToken<LinkedList<String>>() {});
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

          return immutableEntry((TypeToken) k, v);
        }
    
        @Override
        @SuppressWarnings("unchecked")
        public Entry<TypeToken, Object>[] createArray(int length) {
          return (Entry<TypeToken, Object>[]) new Entry<?, ?>[length];
        }
    
        @Override
        public Iterable<Entry<TypeToken, Object>> order(List<Entry<TypeToken, Object>> insertionOrder) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

        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) {
        return trustedGet(TypeToken.of(type));
      }
    
      @Override
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

            .that(TypeToken.of(paramType).isSubtypeOf(returnType))
            .isTrue();
        assertWithMessage("%s is supertype of %s", returnType, paramType)
            .that(TypeToken.of(returnType).isSupertypeOf(paramType))
            .isTrue();
        if (!spec.suppressGetSubtype()) {
          assertThat(getSubtype(returnType, TypeToken.of(paramType).getRawType())).isEqualTo(paramType);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top