Package org.microproxy.dns
Record Class DnssecHostResolver.Resolution
java.lang.Object
java.lang.Record
org.microproxy.dns.DnssecHostResolver.Resolution
- Record Components:
addresses- the resolved IP addressessecure- whether DNSSEC authenticated the answer
- Enclosing class:
DnssecHostResolver
public static record DnssecHostResolver.Resolution(List<InetAddress> addresses, boolean secure)
extends Record
The result of a lookup.
-
Constructor Summary
ConstructorsConstructorDescriptionResolution(List<InetAddress> addresses, boolean secure) Creates an instance of aResolutionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddressesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleansecure()Returns the value of thesecurerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
addresses
Returns the value of theaddressesrecord component.- Returns:
- the value of the
addressesrecord component
-
secure
public boolean secure()Returns the value of thesecurerecord component.- Returns:
- the value of the
securerecord component
-