Class GenericArrayTypeImpl

java.lang.Object
cloud.opencode.base.reflect.type.GenericArrayTypeImpl
All Implemented Interfaces:
GenericArrayType, Type

public final class GenericArrayTypeImpl extends Object implements GenericArrayType
Generic Array Type Implementation 泛型数组类型实现

Implementation of GenericArrayType for runtime type construction.

用于运行时类型构造的GenericArrayType实现。

Features | 主要功能:

  • GenericArrayType runtime construction - GenericArrayType运行时构造
  • Proper equals/hashCode/toString - 正确的equals/hashCode/toString

Usage Examples | 使用示例:

Type listOfString = new ParameterizedTypeImpl(List.class, null, String.class);
GenericArrayType arrayType = new GenericArrayTypeImpl(listOfString);
// Represents List<String>[]

Security | 安全性:

  • Thread-safe: Yes (immutable) - 线程安全: 是(不可变)
  • Null-safe: No (component type must be non-null) - 空值安全: 否(组件类型须非空)
Since:
JDK 25, opencode-base-reflect V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Constructor Details

    • GenericArrayTypeImpl

      public GenericArrayTypeImpl(Type genericComponentType)
      Creates a generic array type 创建泛型数组类型
      Parameters:
      genericComponentType - the component type | 组件类型
  • Method Details