Compare commits
2 Commits
5c3b31bb18
...
ff54aca271
Author | SHA1 | Date |
---|---|---|
ZhouXY108 | ff54aca271 | |
ZhouXY108 | 5d9e6ae5b3 |
|
@ -35,6 +35,6 @@ public abstract class ValidatableStringRecord implements IValueObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getValueOrNull(Optional<? extends ValidatableStringRecord> s) {
|
public static String getValueOrNull(Optional<? extends ValidatableStringRecord> s) {
|
||||||
return s.map(ValidatableStringRecord::value).orElse(null);
|
return s.isPresent() ? s.get().value() : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue