(DeckSection deckSection)
| 221 | |
| 222 | // will return new if it was absent |
| 223 | public CardPool getOrCreate(DeckSection deckSection) { |
| 224 | CardPool p = get(deckSection); |
| 225 | if (p != null) |
| 226 | return p; |
| 227 | p = new CardPool(); |
| 228 | this.parts.put(deckSection, p); |
| 229 | return p; |
| 230 | } |
| 231 | |
| 232 | public void putSection(DeckSection section, CardPool pool) { |
| 233 | this.parts.put(section, pool); |
no test coverage detected