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 aVideoDownloader
record class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank String
Returns the value of thecssSelector
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.@NotNull URI
uri()
Returns the value of theuri
record component.
-
Constructor Details
-
VideoDownloader
Creates an instance of aVideoDownloader
record class.- Parameters:
uri
- the value for theuri
record componentcssSelector
- the value for thecssSelector
record 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 theuri
record component.- Returns:
- the value of the
uri
record component
-
cssSelector
Returns the value of thecssSelector
record component.- Returns:
- the value of the
cssSelector
record component
-