code_junkie

When should I use primitives instead of wrapping objects?

Nov 11th, 2011
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. class Foo{
  2. int xxx = -1;
  3. ...
  4. }
  5.  
  6. void persist(Foo foo){
  7. ...
  8. statement.setInt(15,foo.getXXX()==-1?null:foo.getXXX());
  9. ...
  10. }
Add Comment
Please, Sign In to add comment