Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for assignable (5.08 sec)

  1. doc/go_spec.html

    defined type while the latter is a type literal
    (but they are still <a href="#Assignability">assignable</a>).
    </p>
    
    <h3 id="Assignability">Assignability</h3>
    
    <p>
    A value <code>x</code> of type <code>V</code> is <i>assignable</i> to a <a href="#Variables">variable</a> of type <code>T</code>
    ("<code>x</code> is assignable to <code>T</code>") if one of the following conditions applies:
    </p>
    
    <ul>
    <li>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public void testisSupertypeOf_resolved() {
        assertFalse(Assignability.of().isAssignable());
        assertTrue(new Assignability<Integer, Integer>() {}.isAssignable());
        assertTrue(new Assignability<Integer, Object>() {}.isAssignable());
        assertFalse(new Assignability<Integer, String>() {}.isAssignable());
        TypeTokenTest.<Number, Integer>assignabilityTestWithTypeVariables();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    </p>
    
    
    <h3 id="Assignability">Assignability</h3>
    
    <p>
    A value <code>x</code> is <i>assignable</i> to a <a href="#Variables">variable</a> of type <code>T</code>
    ("<code>x</code> is assignable to <code>T</code>") if one of the following conditions applies:
    </p>
    
    <ul>
    <li>
    <code>x</code>'s type is identical to <code>T</code>.
    </li>
    <li>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  4. src/builtin/builtin.go

    func new(Type) *Type
    
    // The complex built-in function constructs a complex value from two
    // floating-point values. The real and imaginary parts must be of the same
    // size, either float32 or float64 (or assignable to them), and the return
    // value will be the corresponding complex type (complex64 for float32,
    // complex128 for float64).
    func complex(r, i FloatType) ComplexType
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  5. 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)
  6. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public void testisSupertypeOf_resolved() {
        assertFalse(Assignability.of().isAssignable());
        assertTrue(new Assignability<Integer, Integer>() {}.isAssignable());
        assertTrue(new Assignability<Integer, Object>() {}.isAssignable());
        assertFalse(new Assignability<Integer, String>() {}.isAssignable());
        TypeTokenTest.<Number, Integer>assignabilityTestWithTypeVariables();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. android/guava/src/com/google/common/util/concurrent/Futures.java

       */
      public static <V extends @Nullable Object> ListenableFuture<V> immediateFuture(
          @ParametricNullness V value) {
        if (value == null) {
          // This cast is safe because null is assignable to V for all V (i.e. it is bivariant)
          @SuppressWarnings("unchecked")
          ListenableFuture<V> typedNull = (ListenableFuture<V>) ImmediateFuture.NULL;
          return typedNull;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
Back to top