pro.jk.ejoker.common.utils.genericity.GenericDeclaration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ejoker-common Show documentation
Show all versions of ejoker-common Show documentation
EJoker is a CQRS + EventSourcing framwork
package pro.jk.ejoker.common.utils.genericity;
/**
*
* Represents a meta object for Generic Class.
* includes the Generic Type declared name and the position of Generic Class attached.
*
* 记录泛型类型中的一些泛型变量信息。
* 其中包括泛型变量的名字和定义所在位置信息
*
* @author kimffy
*
*/
public class GenericDeclaration extends GenericDefinationEssential {
public final int index;
public final String name;
public GenericDeclaration(GenericDefination ref, int index, String name) {
super(ref);
this.index = index;
this.name = name;
}
public boolean isSameGenericDefination(GenericDefination ref) {
return this.referDefination.equals(ref);
}
}