feat():测试
parent
dab70ab8fa
commit
b8e816232f
|
@ -29,9 +29,9 @@ public enum SystemYesNo {
|
|||
}
|
||||
|
||||
public static boolean isCode(String code){
|
||||
System.out.println("传递code:["+code+"]");
|
||||
return Arrays.stream(values())
|
||||
.map(SystemYesNo::getCode)
|
||||
.anyMatch(s -> s.equals(code));
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue