java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.auth.DNSSource
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record DNSSource(DNSSource.ResolutionMethod dnsMethod, boolean appCached)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theappCachedrecord component.private final DNSSource.ResolutionMethodThe field for thednsMethodrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDNSSource(DNSSource.ResolutionMethod dnsMethod, boolean appCached) Creates an instance of aDNSSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theappCachedrecord component.Returns the value of thednsMethodrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
dnsMethod
The field for thednsMethodrecord component. -
appCached
private final boolean appCachedThe field for theappCachedrecord component.
-
-
Constructor Details
-
DNSSource
Creates an instance of aDNSSourcerecord class.- Parameters:
dnsMethod- the value for thednsMethodrecord componentappCached- the value for theappCachedrecord component
-
-
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 '=='. -
dnsMethod
Returns the value of thednsMethodrecord component.- Returns:
- the value of the
dnsMethodrecord component
-
appCached
public boolean appCached()Returns the value of theappCachedrecord component.- Returns:
- the value of the
appCachedrecord component
-