Record Class Link.MediaEmbed
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.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
-
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
-
hashCode
-
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
-
height
-
scrolling
-
width
-