DnsRecordType implements Comparable<DnsRecordType> { @Override public int hashCode() { return intValue; } private  DnsRecordType(int intValue);  DnsRecordType(int intValue, String name); static DnsRecordType valueOf(int intValue); static DnsRecordType valueOf(String name); String name(); int intValue(); @Override int hashCode(); @Override boolean equals(Object o); @Override int compareTo(DnsRecordType o); @Override String toString(); static final DnsRecordType A; static final DnsRecordType NS; static final DnsRecordType CNAME; static final DnsRecordType SOA; static final DnsRecordType PTR; static final DnsRecordType MX; static final DnsRecordType TXT; static final DnsRecordType RP; static final DnsRecordType AFSDB; static final DnsRecordType SIG; static final DnsRecordType KEY; static final DnsRecordType AAAA; static final DnsRecordType LOC; static final DnsRecordType SRV; static final DnsRecordType NAPTR; static final DnsRecordType KX; static final DnsRecordType CERT; static final DnsRecordType DNAME; static final DnsRecordType OPT; static final DnsRecordType APL; static final DnsRecordType DS; static final DnsRecordType SSHFP; static final DnsRecordType IPSECKEY; static final DnsRecordType RRSIG; static final DnsRecordType NSEC; static final DnsRecordType DNSKEY; static final DnsRecordType DHCID; static final DnsRecordType NSEC3; static final DnsRecordType NSEC3PARAM; static final DnsRecordType TLSA; static final DnsRecordType HIP; static final DnsRecordType SPF; static final DnsRecordType TKEY; static final DnsRecordType TSIG; static final DnsRecordType IXFR; static final DnsRecordType AXFR; static final DnsRecordType ANY; static final DnsRecordType CAA; static final DnsRecordType TA; static final DnsRecordType DLV; }
@Test public void testHashCode() throws Exception { for (DnsRecordType t : allTypes()) { assertEquals(t.intValue(), t.hashCode()); } }