mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-25 10:12:18 -05:00
Better / more verbose toString
This commit is contained in:
parent
b0f8bec1cb
commit
70d403f0b6
@ -515,7 +515,10 @@ public class DNSMessage {
|
|||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "-- DNSMessage " + id + " --\n" +
|
return "-- DNSMessage " + id + " --\n" +
|
||||||
Arrays.toString(answers);
|
"Q" + Arrays.toString(questions) +
|
||||||
|
"NS" + Arrays.toString(nameserverRecords) +
|
||||||
|
"A" + Arrays.toString(answers) +
|
||||||
|
"ARR" + Arrays.toString(additionalResourceRecords);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -134,4 +134,9 @@ public class Question {
|
|||||||
byte o[] = ((Question)other).toByteArray();
|
byte o[] = ((Question)other).toByteArray();
|
||||||
return Arrays.equals(t, o);
|
return Arrays.equals(t, o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "Question/" + clazz + "/" + type + ": " + name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user