Removes a record from a section of the Message, and adjusts the header. @see Record @see Section
(Record r, int section)
| 182 | * @see Section |
| 183 | */ |
| 184 | public boolean |
| 185 | removeRecord(Record r, int section) { |
| 186 | if (sections[section] != null && sections[section].remove(r)) { |
| 187 | header.decCount(section); |
| 188 | return true; |
| 189 | } |
| 190 | else |
| 191 | return false; |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * Removes all records from a section of the Message, and adjusts the header. |