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