Class ParameterizedTypeImpl

java.lang.Object
cloud.opencode.base.reflect.type.ParameterizedTypeImpl
All Implemented Interfaces:
ParameterizedType, Type

public final class ParameterizedTypeImpl extends Object implements ParameterizedType
Parameterized Type Implementation 参数化类型实现

Implementation of ParameterizedType for runtime type construction.

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

Features | 主要功能:

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

Usage Examples | 使用示例:

// Represents List<String>
ParameterizedType type = new ParameterizedTypeImpl(List.class, null, String.class);

// Represents Map<String, Integer>
ParameterizedType mapType = new ParameterizedTypeImpl(Map.class, null, String.class, Integer.class);

Security | 安全性:

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

    • ParameterizedTypeImpl

      public ParameterizedTypeImpl(Class<?> rawType, Type ownerType, Type... actualTypeArguments)
      Creates a parameterized type 创建参数化类型
      Parameters:
      rawType - the raw type | 原始类型
      ownerType - the owner type | 所有者类型
      actualTypeArguments - the actual type arguments | 实际类型参数
  • Method Details