枚举类不允许继承。
parent
8ae0faa04d
commit
993ba7fa7b
|
@ -7,7 +7,7 @@ import xyz.zhouxy.plusone.commons.util.Enumeration;
|
|||
*
|
||||
* @author <a href="https://gitee.com/zhouxy108">ZhouXY</a>
|
||||
*/
|
||||
public class EntityStatus extends Enumeration<EntityStatus> {
|
||||
public final class EntityStatus extends Enumeration<EntityStatus> {
|
||||
|
||||
private EntityStatus(int value, String name) {
|
||||
super(value, name);
|
||||
|
|
|
@ -10,7 +10,7 @@ import xyz.zhouxy.plusone.domain.IValueObject;
|
|||
* @author <a href="https://gitee.com/zhouxy108">ZhouXY</a>
|
||||
*/
|
||||
@Getter
|
||||
public class AccountStatus extends Enumeration<AccountStatus> implements IValueObject {
|
||||
public final class AccountStatus extends Enumeration<AccountStatus> implements IValueObject {
|
||||
|
||||
private AccountStatus(int value, String name) {
|
||||
super(value, name);
|
||||
|
|
|
@ -10,7 +10,7 @@ import xyz.zhouxy.plusone.domain.IValueObject;
|
|||
*
|
||||
* @author <a href="https://gitee.com/zhouxy108">ZhouXY</a>
|
||||
*/
|
||||
public class Sex extends Enumeration<Sex> implements IValueObject {
|
||||
public final class Sex extends Enumeration<Sex> implements IValueObject {
|
||||
@Nonnull
|
||||
public static final Sex UNSET = new Sex(0, "未设置");
|
||||
@Nonnull
|
||||
|
|
Loading…
Reference in New Issue