Returns the first record @throws IllegalStateException if the rrset is empty
()
| 215 | * @throws IllegalStateException if the rrset is empty |
| 216 | */ |
| 217 | public synchronized Record |
| 218 | first() { |
| 219 | if (rrs.size() == 0) |
| 220 | throw new IllegalStateException("rrset is empty"); |
| 221 | return (Record) rrs.get(0); |
| 222 | } |
| 223 | |
| 224 | private String |
| 225 | iteratorToString(Iterator it) { |
no test coverage detected