java.lang.Object
java.lang.Record
it.auties.whatsapp.model.media.MediaConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NonNull String
The field for theauth
record component.The field for thehosts
record component.private final int
The field for themaxBuckets
record component.private final long
The field for thetimestamp
record component.private final int
The field for thettl
record component. -
Constructor Summary
ConstructorsConstructorDescriptionMediaConnection
(@NonNull String auth, int ttl, int maxBuckets, long timestamp, @NonNull List<@NonNull String> hosts) Creates an instance of aMediaConnection
record class. -
Method Summary
Modifier and TypeMethodDescription@NonNull String
auth()
Returns the value of theauth
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.hosts()
Returns the value of thehosts
record component.int
Returns the value of themaxBuckets
record component.static MediaConnection
long
Returns the value of thetimestamp
record component.final String
toString()
Returns a string representation of this record class.int
ttl()
Returns the value of thettl
record component.
-
Field Details
-
auth
The field for theauth
record component. -
ttl
private final int ttlThe field for thettl
record component. -
maxBuckets
private final int maxBucketsThe field for themaxBuckets
record component. -
timestamp
private final long timestampThe field for thetimestamp
record component. -
hosts
The field for thehosts
record component.
-
-
Constructor Details
-
MediaConnection
public MediaConnection(@NonNull @NonNull String auth, int ttl, int maxBuckets, long timestamp, @NonNull @NonNull List<@NonNull String> hosts) Creates an instance of aMediaConnection
record class.- Parameters:
auth
- the value for theauth
record componentttl
- the value for thettl
record componentmaxBuckets
- the value for themaxBuckets
record componenttimestamp
- the value for thetimestamp
record componenthosts
- the value for thehosts
record component
-
-
Method Details
-
of
-
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 theauth
record component.- Returns:
- the value of the
auth
record component
-
ttl
public int ttl()Returns the value of thettl
record component.- Returns:
- the value of the
ttl
record component
-
maxBuckets
public int maxBuckets()Returns the value of themaxBuckets
record component.- Returns:
- the value of the
maxBuckets
record component
-
timestamp
public long timestamp()Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-
hosts
Returns the value of thehosts
record component.- Returns:
- the value of the
hosts
record component
-