Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getGenericComponentType (0.19 sec)

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

        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj instanceof GenericArrayType) {
            GenericArrayType that = (GenericArrayType) obj;
            return Objects.equal(getGenericComponentType(), that.getGenericComponentType());
          }
          return false;
        }
    
        private static final long serialVersionUID = 0;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/TypeVisitor.java

     *     visit(t.getOwnerType());
     *     visit(t.getActualTypeArguments());
     *   }
     *   protected void visitGenericArrayType(GenericArrayType t) {
     *     visit(t.getGenericComponentType());
     *   }
     *   protected void visitTypeVariable(TypeVariable<?> t) {
     *     throw new IllegalArgumentException("Cannot contain type variable.");
     *   }
     *   protected void visitWildcardType(WildcardType t) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Apr 16 21:10:04 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/lang/GenericsUtil.java

            }
            if (type instanceof GenericArrayType) {
                final GenericArrayType genericArrayType = GenericArrayType.class.cast(type);
                final Class<?> rawClass = getRawClass(genericArrayType.getGenericComponentType());
                return Array.newInstance(rawClass, 0).getClass();
            }
            return null;
        }
    
        /**
         * <code>type</code>の型引数の配列を返します。
         * <p>
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/TypeResolver.java

            }
            Type componentType = Types.getComponentType(to);
            checkArgument(componentType != null, "%s is not an array type.", to);
            populateTypeMappings(mappings, fromArrayType.getGenericComponentType(), componentType);
          }
    
          @Override
          void visitClass(Class<?> fromClass) {
            if (to instanceof WildcardType) {
              return; // Okay to say Foo is <?>
            }
    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/TypeResolver.java

            }
            Type componentType = Types.getComponentType(to);
            checkArgument(componentType != null, "%s is not an array type.", to);
            populateTypeMappings(mappings, fromArrayType.getGenericComponentType(), componentType);
          }
    
          @Override
          void visitClass(Class<?> fromClass) {
            if (to instanceof WildcardType) {
              return; // Okay to say Foo is <?>
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        new EqualsTester()
            .addEqualityGroup(jvmType1, ourType1)
            .addEqualityGroup(jvmType2, ourType2)
            .testEquals();
        assertEquals(new TypeCapture<List<String>>() {}.capture(), ourType1.getGenericComponentType());
        assertEquals(jvmType1.toString(), ourType1.toString());
        assertEquals(jvmType2.toString(), ourType2.toString());
      }
    
      public void testNewArrayTypeOfArray() {
    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

        new EqualsTester()
            .addEqualityGroup(jvmType1, ourType1)
            .addEqualityGroup(jvmType2, ourType2)
            .testEquals();
        assertEquals(new TypeCapture<List<String>>() {}.capture(), ourType1.getGenericComponentType());
        assertEquals(jvmType1.toString(), ourType1.toString());
        assertEquals(jvmType2.toString(), ourType2.toString());
      }
    
      public void testNewArrayTypeOfArray() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
Back to top