Record Class Link.MediaEmbed
java.lang.Object
java.lang.Record
io.github.yvasyliev.telegramforwarderbot.reddit.dto.Link.MediaEmbed
- Record Components:
content- the content of the media embedheight- the height of the media embedscrolling- indicates if scrolling is enabled for the media embedwidth- the width of the media embed
- Enclosing class:
Link
public static record Link.MediaEmbed(String content, Integer height, Boolean scrolling, Integer width)
extends Record
Represents the media embed information for a Reddit post.
This can include content, height, scrolling behavior, and width of the embedded media.
-
Constructor Summary
ConstructorsConstructorDescriptionMediaEmbed(String content, Integer height, Boolean scrolling, Integer width) Creates an instance of aMediaEmbedrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.Returns the value of thescrollingrecord component.final StringtoString()Returns a string representation of this record class.width()Returns the value of thewidthrecord component.
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
height
Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
scrolling
Returns the value of thescrollingrecord component.- Returns:
- the value of the
scrollingrecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-