Record Class RedditProperties.VideoDownloader
java.lang.Object
java.lang.Record
io.github.yvasyliev.telegramforwarderbot.configuration.RedditProperties.VideoDownloader
- Record Components:
uri- the URI of the video to downloadcssSelector- the CSS selector to locate the video element
- Enclosing class:
RedditProperties
public static record RedditProperties.VideoDownloader(@NotNull URI uri, @NotBlank String cssSelector)
extends Record
Configuration for downloading videos from Reddit.
This record holds the URI of the video and the CSS selector
used to extract the video element from the HTML.
-
Constructor Summary
ConstructorsConstructorDescriptionVideoDownloader(@NotNull URI uri, @NotBlank String cssSelector) Creates an instance of aVideoDownloaderrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank StringReturns the value of thecssSelectorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.@NotNull URIuri()Returns the value of theurirecord component.
-
Constructor Details
-
VideoDownloader
Creates an instance of aVideoDownloaderrecord class.- Parameters:
uri- the value for theurirecord componentcssSelector- the value for thecssSelectorrecord 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). -
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
cssSelector
Returns the value of thecssSelectorrecord component.- Returns:
- the value of the
cssSelectorrecord component
-