Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.28 KB | None | 0 0
  1. propertiesAreEqual = { lhs, rhs ->
  2.     // Some stuff
  3.  
  4.     if (lhs == null && rhs == null) {
  5.         return true
  6.     }
  7.  
  8.     if (lhs == null && rhs != null) {
  9.         return false
  10.     }
  11.  
  12.     if (lhs != null && rhs == null) {
  13.         return false
  14.     }
  15.  
  16.     // Some more stuff
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement