Guest User

Untitled

a guest
Jul 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. if(check1(obj) != null)
  2. doSomething(check1(obj))
  3. else if(check2(obj) != null)
  4. doSomething(check2(obj))
  5. /*...*/
  6. else if(checkN(obj) != null)
  7. doSomething(checkN(obj))
  8. /*where check1..checkN are homogeneous checks on obj with same return type.*/
Add Comment
Please, Sign In to add comment