Polish documentation for SpEL Elvis operator
This commit is contained in:
parent
c7b0550e43
commit
1780e30a43
|
@ -1,10 +1,10 @@
|
||||||
[[expressions-operator-elvis]]
|
[[expressions-operator-elvis]]
|
||||||
= The Elvis Operator
|
= The Elvis Operator
|
||||||
|
|
||||||
The Elvis operator is a shortening of the ternary operator syntax and is used in the
|
The Elvis operator (`?:`) is a shortening of the ternary operator syntax and is used in
|
||||||
https://www.groovy-lang.org/operators.html#_elvis_operator[Groovy] language. With the
|
the https://www.groovy-lang.org/operators.html#_elvis_operator[Groovy] language. With the
|
||||||
ternary operator syntax, you often have to repeat a variable twice, as the following
|
ternary operator syntax, you often have to repeat a variable twice, as the following Java
|
||||||
Java example shows:
|
example shows:
|
||||||
|
|
||||||
[source,java,indent=0,subs="verbatim,quotes"]
|
[source,java,indent=0,subs="verbatim,quotes"]
|
||||||
----
|
----
|
||||||
|
|
Loading…
Reference in New Issue