Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getOwnerType (0.09 sec)

  1. guava/src/com/google/common/reflect/TypeResolver.java

            ParameterizedType toParameterizedType = expectArgument(ParameterizedType.class, to);
            if (fromParameterizedType.getOwnerType() != null
                && toParameterizedType.getOwnerType() != null) {
              populateTypeMappings(
                  mappings, fromParameterizedType.getOwnerType(), toParameterizedType.getOwnerType());
            }
            checkArgument(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/reflect/Types.java

        return new ParameterizedTypeImpl(
            ClassOwnership.JVM_BEHAVIOR.getOwnerType(rawType), rawType, arguments);
      }
    
      /** Decides what owner type to use for constructing {@link ParameterizedType} from a raw class. */
      private enum ClassOwnership {
        OWNED_BY_ENCLOSING_CLASS {
          @Override
          @CheckForNull
          Class<?> getOwnerType(Class<?> rawType) {
            return rawType.getEnclosingClass();
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/TypeResolver.java

            ParameterizedType toParameterizedType = expectArgument(ParameterizedType.class, to);
            if (fromParameterizedType.getOwnerType() != null
                && toParameterizedType.getOwnerType() != null) {
              populateTypeMappings(
                  mappings, fromParameterizedType.getOwnerType(), toParameterizedType.getOwnerType());
            }
            checkArgument(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/reflect/Invokable.java

      }
    
      @Override
      public boolean equals(@CheckForNull Object obj) {
        if (obj instanceof Invokable) {
          Invokable<?, ?> that = (Invokable<?, ?>) obj;
          return getOwnerType().equals(that.getOwnerType()) && member.equals(that.member);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return member.hashCode();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        ParameterizedType ourType =
            Types.newParameterizedType(Entry.class, String.class, Integer.class);
        assertEquals(jvmType, ourType);
        assertEquals(Map.class, ourType.getOwnerType());
      }
    
      public void testNewParameterizedType() {
        ParameterizedType jvmType =
            (ParameterizedType) new TypeCapture<HashMap<String, int[][]>>() {}.capture();
        ParameterizedType ourType =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/TypesTest.java

        ParameterizedType ourType =
            Types.newParameterizedType(Entry.class, String.class, Integer.class);
        assertEquals(jvmType, ourType);
        assertEquals(Map.class, ourType.getOwnerType());
      }
    
      public void testNewParameterizedType() {
        ParameterizedType jvmType =
            (ParameterizedType) new TypeCapture<HashMap<String, int[][]>>() {}.capture();
        ParameterizedType ourType =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        ParameterizedType parameterizedType =
            (ParameterizedType) TypeToken.toGenericType(GenericClass.class).getType();
        assertThat(parameterizedType.getOwnerType()).isEqualTo(javacReturnType.getOwnerType());
      }
    
      public static <T> GenericClass<T> getStaticAnonymousClass(final T value) {
        return new GenericClass<T>() {
          @SuppressWarnings("unused")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        ParameterizedType parameterizedType =
            (ParameterizedType) TypeToken.toGenericType(GenericClass.class).getType();
        assertThat(parameterizedType.getOwnerType()).isEqualTo(javacReturnType.getOwnerType());
      }
    
      public static <T> GenericClass<T> getStaticAnonymousClass(final T value) {
        return new GenericClass<T>() {
          @SuppressWarnings("unused")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertEquals(TypeToken.of(String.class), invokable.getOwnerType());
      }
    
      public void testGetOwnerType_method() throws Exception {
        Invokable<?, ?> invokable = Invokable.from(String.class.getMethod("length"));
        assertEquals(TypeToken.of(String.class), invokable.getOwnerType());
      }
    
      private static final class FinalClass {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertEquals(TypeToken.of(String.class), invokable.getOwnerType());
      }
    
      public void testGetOwnerType_method() throws Exception {
        Invokable<?, ?> invokable = Invokable.from(String.class.getMethod("length"));
        assertEquals(TypeToken.of(String.class), invokable.getOwnerType());
      }
    
      private static final class FinalClass {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top