We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2475644 commit dd28e98Copy full SHA for dd28e98
1 file changed
jooby/src/main/java/io/jooby/Value.java
@@ -324,6 +324,15 @@ default boolean isMissing() {
324
return this instanceof MissingValue;
325
}
326
327
+ /**
328
+ * True for present values.
329
+ *
330
+ * @return True for present values.
331
+ */
332
+ default boolean isPresent() {
333
+ return !isMissing();
334
+ }
335
+
336
/**
337
* True if this value is an array/sequence (not single or hash).
338
*
0 commit comments