Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

From Groovy 1.0 beta 10, Groovy supports bitwise operations:
<<. >>, >>>, |, &, ^, and ~.

_Meaning_
<<

Bitwise Left Shift Operator
>>

Bitwise Right Shift Operator
>>>

Bitwise Unsigned Right Shift Operator
|

Bitwise Or Operator
&

Bitwise And Operator
^

Bitwise Xor Operator
~

Bitwise Negation Operator
<<=

Bitwise Left Shift Assign Operator
>>=

Bitwise Right Shift Assign Operator
>>>=

Bitwise Unsigned Right Shift Assign Operator
|=

Bitwise Or Assign Operator
&=

Bitwise And Assign Operator
^=

Bitwise Xor Operator

For example,

  • No labels