Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Match expression doc tweaks #11691

Merged
merged 1 commit into from
Apr 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,8 @@ public static Expression switchCase(@NonNull @Size(min = 1) Expression... input)
* Selects the output whose label value matches the input value, or the fallback value if no match is found.
* The `input` can be any string or number expression.
* Each label can either be a single literal value or an array of values.
* If types of the input and keys don't match, or the input value doesn't exist,
* the expresion will fail without falling back to the default value.
* <p>
* Example usage:
* </p>
Expand Down Expand Up @@ -986,6 +988,8 @@ public static Expression match(@NonNull @Size(min = 2) Expression... input) {
* Selects the output whose label value matches the input value, or the fallback value if no match is found.
* The `input` can be any string or number expression.
* Each label can either be a single literal value or an array of values.
* If types of the input and keys don't match, or the input value doesn't exist,
* the expresion will fail without falling back to the default value.
* <p>
* Example usage:
* </p>
Expand Down