java.lang.Object
java.lang.Record
it.auties.whatsapp.model.media.MediaConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theauthrecord component.The field for thehostsrecord component.private final intThe field for themaxBucketsrecord component.private final longThe field for thetimestamprecord component.private final intThe field for thettlrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMediaConnection(String auth, int ttl, int maxBuckets, long timestamp, List<String> hosts) Creates an instance of aMediaConnectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionauth()Returns the value of theauthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hosts()Returns the value of thehostsrecord component.intReturns the value of themaxBucketsrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.intttl()Returns the value of thettlrecord component.
-
Field Details
-
auth
The field for theauthrecord component. -
ttl
private final int ttlThe field for thettlrecord component. -
maxBuckets
private final int maxBucketsThe field for themaxBucketsrecord component. -
timestamp
private final long timestampThe field for thetimestamprecord component. -
hosts
The field for thehostsrecord component.
-
-
Constructor Details
-
MediaConnection
Creates an instance of aMediaConnectionrecord class.- Parameters:
auth- the value for theauthrecord componentttl- the value for thettlrecord componentmaxBuckets- the value for themaxBucketsrecord componenttimestamp- the value for thetimestamprecord componenthosts- the value for thehostsrecord 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 '=='. -
auth
Returns the value of theauthrecord component.- Returns:
- the value of the
authrecord component
-
ttl
public int ttl()Returns the value of thettlrecord component.- Returns:
- the value of the
ttlrecord component
-
maxBuckets
public int maxBuckets()Returns the value of themaxBucketsrecord component.- Returns:
- the value of the
maxBucketsrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
hosts
Returns the value of thehostsrecord component.- Returns:
- the value of the
hostsrecord component
-