Determines if an RRset with the given name and type is already present in the given section. @see RRset @see Section
(Name name, int type, int section)
| 232 | * @see Section |
| 233 | */ |
| 234 | public boolean |
| 235 | findRRset(Name name, int type, int section) { |
| 236 | if (sections[section] == null) |
| 237 | return false; |
| 238 | for (int i = 0; i < sections[section].size(); i++) { |
| 239 | Record r = (Record) sections[section].get(i); |
| 240 | if (r.getType() == type && name.equals(r.getName())) |
| 241 | return true; |
| 242 | } |
| 243 | return false; |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Determines if an RRset with the given name and type is already |