Java Reference
In-Depth Information
Operators
Table 3.2 contains a list of the operators used in JavaFX. The priority column
indicates the operator evaluation precedence, with higher precedence operators
in the first rows. Operators with the same precedence level are evaluated equally.
Assignment operators are evaluated right to left, whereas all others are evaluated
left to right. Parentheses may be used to alter this default evaluation order.
Ta b l e 3 . 2
Operators
Priority
Operator
Meaning
1
++/-- (Suffixed)
Post-increment/decrement assignment
2
++/-- (Prefixed)
Pre-increment/decrement assignment
-
Unary minus
not
Logical complement; inverts value of a Boolean
sizeof
Size of a sequence
reverse
Reverse sequence order
indexof
Index of a sequence element
3
/, *, mod
Arithmetic operators
4
+, -
Arithmetic operators
5
==, !=
Comparison operators (Note: all comparisons are similar to
isEquals() in Java)
<, <=, >, >=
Numeric comparison operators
6
instanceof, as
Type operators
7
and
Logical AND
8
or
Logical OR
9
+=, -=, *=, /=
Compound assignment
10
=>, tween
Animation interpolation operators
11
=
Assignment
 
Search WWH ::




Custom Search