Record Class RedditVideoDownloaderProperties
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.reddit.configuration.RedditVideoDownloaderProperties
- Record Components:
uri- the URI of the Reddit video downloader servicecssSelector- the CSS selector used to locate video elements
-
Constructor Summary
ConstructorsConstructorDescriptionRedditVideoDownloaderProperties(@NotNull URI uri, @NotBlank String cssSelector) Creates an instance of aRedditVideoDownloaderPropertiesrecord 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
-
RedditVideoDownloaderProperties
public RedditVideoDownloaderProperties(@NotNull @NotNull URI uri, @NotBlank @NotBlank String cssSelector) Creates an instance of aRedditVideoDownloaderPropertiesrecord class.- Parameters:
uri- the value for theurirecord componentcssSelector- the value for thecssSelectorrecord 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). -
uri
-
cssSelector
Returns the value of thecssSelectorrecord component.- Returns:
- the value of the
cssSelectorrecord component
-