MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / first

Method first

src/main/java/core/org/xbill/DNS/RRset.java:217–222  ·  view source on GitHub ↗

Returns the first record @throws IllegalStateException if the rrset is empty

()

Source from the content-addressed store, hash-verified

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

Callers 11

addRRMethod · 0.95
getNameMethod · 0.95
getTypeMethod · 0.95
getDClassMethod · 0.95
getTTLMethod · 0.95
removeRecordMethod · 0.95
addMessageMethod · 0.95
getSmallestReceivedMethod · 0.80
getCNAMEMethod · 0.80
getDNAMEMethod · 0.80
markAdditionalMethod · 0.80

Calls 2

sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected