Record Class Listing
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.reddit.dto.Listing
- Record Components:
after- the name of the last element in the listing, used for paginationdist- the number of elements in the listingmodhash- a hash used to prevent CSRF attacks, can be nullgeoFilter- a filter for geographical content, can be nullchildren- child elements of the listing, each containing aThingwith aLinkobjectbefore- the name of the first element in the listing, used for pagination
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafter()Returns the value of theafterrecord component.before()Returns the value of thebeforerecord component.children()Returns the value of thechildrenrecord component.dist()Returns the value of thedistrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeoFilterrecord component.final inthashCode()Returns a hash code value for this object.modhash()Returns the value of themodhashrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Listing
public Listing(String after, Integer dist, String modhash, String geoFilter, List<Thing<Link>> children, String before) Creates an instance of aListingrecord class.- Parameters:
after- the value for theafterrecord componentdist- the value for thedistrecord componentmodhash- the value for themodhashrecord componentgeoFilter- the value for thegeoFilterrecord componentchildren- the value for thechildrenrecord componentbefore- the value for thebeforerecord 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). -
after
-
dist
-
modhash
-
geoFilter
-
children
-
before
-