Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
lazycece committed Mar 17, 2023
1 parent 2b0fa90 commit e9e2ade
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,18 @@
/**
* To validate enum's value is right or not .
* <p>
* <p>
* Example one, if enum like:
* <pre>{@code
* public enum Sex {
* <p>
*
* MALE, FEMALE, OTHER
*
* }
* }</pre>
* can use the annotation as {@code @Enum(clazz = Sex.class)}, and param sex = 0;
* Or use the annotation as {@code @Enum(clazz = Sex.class, method = "name")},
* and param sex = "MALE";
* <p>
* <p>
* Example two, if enum like:
* <pre>{@code
* public enum Role {
Expand Down Expand Up @@ -83,7 +82,6 @@
* method = "getDesc")</code>,and param role = "ADMIN";
*
* <p>
* <p>
*
* @author lazycece
* @date 2021/10/24
Expand Down

0 comments on commit e9e2ade

Please sign in to comment.