Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getOwnerType (0.11 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/TypeVisitor.java

     * example, this can be used to reject wildcards or type variables contained in a type as in:
     *
     * <pre>{@code
     * new TypeVisitor() {
     *   protected void visitParameterizedType(ParameterizedType t) {
     *     visit(t.getOwnerType());
     *     visit(t.getActualTypeArguments());
     *   }
     *   protected void visitGenericArrayType(GenericArrayType t) {
     *     visit(t.getGenericComponentType());
     *   }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Apr 16 21:10:04 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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. guava-tests/test/com/google/common/reflect/TypeVisitorTest.java

     *
     * @author Ben Yu
     */
    public class TypeVisitorTest extends TestCase {
    
      public void testVisitNull() {
        new BaseTypeVisitor()
            .visit(((ParameterizedType) ArrayList.class.getGenericSuperclass()).getOwnerType());
      }
    
      public void testVisitClass() {
        assertVisited(String.class);
        new BaseTypeVisitor() {
          @Override
          void visitClass(Class<?> t) {}
        }.visit(String.class);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.7K bytes
    - Viewed (0)
  10. 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)
Back to top