Record Class RedditProperties
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.reddit.configuration.RedditProperties
- Record Components:
host- Reddit hostsubreddit- subreddit nameusername- developer usernameuserAgent- User-Agent HTTP header
-
Constructor Summary
ConstructorsConstructorDescriptionRedditProperties(@NotNull URI host, @NotBlank String subreddit, @NotBlank String username, @NotBlank String userAgent) Creates an instance of aRedditPropertiesrecord 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.@NotNull URIhost()Returns the value of thehostrecord component.@NotBlank StringReturns the value of thesubredditrecord component.final StringtoString()Returns a string representation of this record class.@NotBlank StringReturns the value of theuserAgentrecord component.@NotBlank Stringusername()Returns the value of theusernamerecord component.
-
Constructor Details
-
RedditProperties
-
-
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). -
host
-
subreddit
-
username
-
userAgent
-