you could use 

```
(item.status==Item.BOUGHT ? boughtItems : unboughtItems).put(...)
```

here if you wanted. I'm not saying you should, it's a matter of preference. I'm just mentioning it.