Module org.mastodon4j.core
Package org.mastodon4j.core.api.entities
Record Class Instance.Configuration.MediaAttachments
java.lang.Object
java.lang.Record
org.mastodon4j.core.api.entities.Instance.Configuration.MediaAttachments
- Enclosing class:
- Instance.Configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimage_matrix_limitrecord component.Returns the value of theimage_size_limitrecord component.Returns the value of thesupported_mime_typesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevideo_frame_rate_limitrecord component.Returns the value of thevideo_matrix_limitrecord component.Returns the value of thevideo_size_limitrecord component.
-
Constructor Details
-
MediaAttachments
public MediaAttachments(List<String> supported_mime_types, Integer image_size_limit, Integer image_matrix_limit, Integer video_size_limit, Integer video_frame_rate_limit, Integer video_matrix_limit) Creates an instance of aMediaAttachmentsrecord class.- Parameters:
supported_mime_types- the value for thesupported_mime_typesrecord componentimage_size_limit- the value for theimage_size_limitrecord componentimage_matrix_limit- the value for theimage_matrix_limitrecord componentvideo_size_limit- the value for thevideo_size_limitrecord componentvideo_frame_rate_limit- the value for thevideo_frame_rate_limitrecord componentvideo_matrix_limit- the value for thevideo_matrix_limitrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
supported_mime_types
Returns the value of thesupported_mime_typesrecord component.- Returns:
- the value of the
supported_mime_typesrecord component
-
image_size_limit
Returns the value of theimage_size_limitrecord component.- Returns:
- the value of the
image_size_limitrecord component
-
image_matrix_limit
Returns the value of theimage_matrix_limitrecord component.- Returns:
- the value of the
image_matrix_limitrecord component
-
video_size_limit
Returns the value of thevideo_size_limitrecord component.- Returns:
- the value of the
video_size_limitrecord component
-
video_frame_rate_limit
Returns the value of thevideo_frame_rate_limitrecord component.- Returns:
- the value of the
video_frame_rate_limitrecord component
-
video_matrix_limit
Returns the value of thevideo_matrix_limitrecord component.- Returns:
- the value of the
video_matrix_limitrecord component
-