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 8 Next »

Operators

Most are listed here: Operator Overloading

TODO quick ref table of all operators on this page w/ links
TODO make this page a child of the User Guide
TODO the ! (not) operator; link to Groovy Truth documentation

Conditional Operators

  • Elvis operator
  • Safe navigation operator (?.)
  • Ternary operator ( a ? b : c ) - see the section on conditional operators in the Java Tutorial

Collection-based Operators

  • Spread Operator
  • range ".." operator

Object- Related Operators

  • invokeMethod and get/setProperty (the . operator)
  • 'as' - "manual coercion" - asType(t) method
  • Link to documentation on Groovy == ( equals() ) behavior. (and mention "is" for identity)

Regular Expression Operators

  • find (=~)
  • match (==~)
  • No labels