YadaPersistentEnum.java 文件源码

java
阅读 34 收藏 0 点赞 0 评论 0

项目:yadaframework 作者:
/**
 * Sets the attributes of a normal enum into this instance, but not the localized text
 * @param enumValue
 */
@Transient
public void setEnum(E enumValue) {
    this.enumClassName = enumValue.getClass().getName();
    this.enumOrdinal = enumValue.ordinal();
    this.enumName = enumValue.name();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号