Record Class Link.GalleryData
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.reddit.dto.Link.GalleryData
- Record Components:
items- the list of items in the gallery
- Enclosing class:
Link
Represents the gallery data associated with a Reddit post.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents an item in the gallery. -
Constructor Summary
ConstructorsConstructorDescriptionGalleryData(List<Link.GalleryData.Item> items) Creates an instance of aGalleryDatarecord class. -
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.items()Returns the value of theitemsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GalleryData
Creates an instance of aGalleryDatarecord class.- Parameters:
items- the value for theitemsrecord component
-
-
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). -
items
-