Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for Supertype (6.83 sec)

  1. android/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() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 20.3K bytes
    - Viewed (0)
  2. 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() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 20.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Optional.java

     * object.
     *
     * <p><b>Comparison to {@code java.util.Optional} (JDK 8 and higher):</b> A new {@code Optional}
     * class was added for Java 8. The two classes are extremely similar, but incompatible (they cannot
     * share a common supertype). <i>All</i> known differences are listed either here or with the
     * relevant methods below.
     *
     * <ul>
     *   <li>This class is serializable; {@code java.util.Optional} is not.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals("Correct string should be delivered.", EVENT, events.get(0));
      }
    
      /**
       * Tests that events are distributed to any subscribers to their type or any supertype, including
       * interfaces and superclasses.
       *
       * <p>Also checks delivery ordering in such cases.
       */
      public void testPolymorphicDistribution() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals("Correct string should be delivered.", EVENT, events.get(0));
      }
    
      /**
       * Tests that events are distributed to any subscribers to their type or any supertype, including
       * interfaces and superclasses.
       *
       * <p>Also checks delivery ordering in such cases.
       */
      public void testPolymorphicDistribution() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

      }
    
      private static ImmutableList<Method> getAnnotatedMethodsNotCached(Class<?> clazz) {
        Set<? extends Class<?>> supertypes = TypeToken.of(clazz).getTypes().rawTypes();
        Map<MethodIdentifier, Method> identifiers = Maps.newHashMap();
        for (Class<?> supertype : supertypes) {
          for (Method method : supertype.getDeclaredMethods()) {
            if (method.isAnnotationPresent(Subscribe.class) && !method.isSynthetic()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:05:46 GMT 2021
    - 10.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ComparisonChain.java

      public static ComparisonChain start() {
        return ACTIVE;
      }
    
      private static final ComparisonChain ACTIVE =
          new ComparisonChain() {
            @SuppressWarnings("unchecked") // unsafe; see discussion on supertype
            @Override
            public ComparisonChain compare(Comparable<?> left, Comparable<?> right) {
              return classify(((Comparable<Object>) left).compareTo(right));
            }
    
            @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Sep 21 17:28:11 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Converter.java

     * advantage of that for convertAll, as discussed on that method.)
     *
     * 2. The supertype of this class could be `Function<@Nullable A, @Nullable B>`, since
     * Converter.apply (like Converter.convert) is capable of accepting null inputs. However, a
     * supertype of `Function<A, B>` turns out to be massively more useful to callers in practice: They
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Optional.java

     * object.
     *
     * <p><b>Comparison to {@code java.util.Optional} (JDK 8 and higher):</b> A new {@code Optional}
     * class was added for Java 8. The two classes are extremely similar, but incompatible (they cannot
     * share a common supertype). <i>All</i> known differences are listed either here or with the
     * relevant methods below.
     *
     * <ul>
     *   <li>This class is serializable; {@code java.util.Optional} is not.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/HashBiMap.java

        Arrays.fill(nextInInsertionOrder, 0, size, ABSENT);
        size = 0;
        firstInInsertionOrder = ENDPOINT;
        lastInInsertionOrder = ENDPOINT;
        modCount++;
      }
    
      /** Shared supertype of keySet, values, entrySet, and inverse.entrySet. */
      abstract static class View<
              K extends @Nullable Object, V extends @Nullable Object, T extends @Nullable Object>
          extends AbstractSet<T> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
Back to top