forked from plusone/plusone-commons
删除注解。
parent
4617896655
commit
10f6d748c8
|
@ -42,12 +42,10 @@ final class EntityStatus extends Enumeration<EntityStatus> {
|
||||||
private static final ValueSet<EntityStatus> VALUE_SET = new ValueSet<>(
|
private static final ValueSet<EntityStatus> VALUE_SET = new ValueSet<>(
|
||||||
AVAILABLE, DISABLED);
|
AVAILABLE, DISABLED);
|
||||||
|
|
||||||
@Nonnull
|
|
||||||
public static EntityStatus of(int value) {
|
public static EntityStatus of(int value) {
|
||||||
return VALUE_SET.get(value);
|
return VALUE_SET.get(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nonnull
|
|
||||||
public static Collection<EntityStatus> constants() {
|
public static Collection<EntityStatus> constants() {
|
||||||
return VALUE_SET.getValues();
|
return VALUE_SET.getValues();
|
||||||
}
|
}
|
||||||
|
@ -63,12 +61,10 @@ final class Result extends Enumeration<Result> {
|
||||||
|
|
||||||
private static final ValueSet<Result> VALUE_SET = new ValueSet<>(SUCCESSFUL, FAILURE);
|
private static final ValueSet<Result> VALUE_SET = new ValueSet<>(SUCCESSFUL, FAILURE);
|
||||||
|
|
||||||
@Nonnull
|
|
||||||
public static Result of(int id) {
|
public static Result of(int id) {
|
||||||
return VALUE_SET.get(id);
|
return VALUE_SET.get(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nonnull
|
|
||||||
public static Collection<Result> constants() {
|
public static Collection<Result> constants() {
|
||||||
return VALUE_SET.getValues();
|
return VALUE_SET.getValues();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue