Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for assignable (0.29 sec)

  1. guava/src/com/google/common/base/Predicates.java

        return new InstanceOfPredicate<>(clazz);
      }
    
      /**
       * Returns a predicate that evaluates to {@code true} if the class being tested is assignable to
       * (is a subtype of) {@code clazz}. Example:
       *
       * <pre>{@code
       * List<Class<?>> classes = Arrays.asList(
       *     Object.class, String.class, Number.class, Long.class);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class MapInterfaceTest<K extends @Nullable Object, V extends @Nullable Object>
        extends TestCase {
    
      /** A key type that is not assignable to any classes but Object. */
      private static final class IncompatibleKeyType {
        @Override
        public String toString() {
          return "IncompatibleKeyType";
        }
      }
    
      protected final boolean supportsPut;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

          int k = 0;
          int i = takeIndex;
          while (k < count) {
            // This cast is not itself safe, but the following statement
            // will fail if the runtime type of items[i] is not assignable
            // to the runtime type of a[k++], which is all that the method
            // contract requires (see @throws ArrayStoreException above).
            @SuppressWarnings("unchecked")
            T t = (T) items[i];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/eventbus/EventBus.java

     *
     * <p>Events are routed based on their type &mdash; an event will be delivered to any subscriber for
     * any type to which the event is assignable. This includes implemented interfaces, all
     * superclasses, and all interfaces implemented by superclasses.
     *
     * <p>When {@code post} is called, all registered subscribers for an event are run in sequence, so
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 25 16:37:57 GMT 2021
    - 12.8K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class MapInterfaceTest<K extends @Nullable Object, V extends @Nullable Object>
        extends TestCase {
    
      /** A key type that is not assignable to any classes but Object. */
      private static final class IncompatibleKeyType {
        @Override
        public String toString() {
          return "IncompatibleKeyType";
        }
      }
    
      protected final boolean supportsPut;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
  6. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

          int k = 0;
          int i = takeIndex;
          while (k < count) {
            // This cast is not itself safe, but the following statement
            // will fail if the runtime type of items[i] is not assignable
            // to the runtime type of a[k++], which is all that the method
            // contract requires (see @throws ArrayStoreException above).
            @SuppressWarnings("unchecked")
            T t = (T) items[i];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Predicates.java

        return new InstanceOfPredicate<>(clazz);
      }
    
      /**
       * Returns a predicate that evaluates to {@code true} if the class being tested is assignable to
       * (is a subtype of) {@code clazz}. Example:
       *
       * <pre>{@code
       * List<Class<?>> classes = Arrays.asList(
       *     Object.class, String.class, Number.class, Long.class);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top