Package org.localify.user.support
Class UserSearch
java.lang.Object
org.localify.user.support.UserSearch
Represents a search query made by a user.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.UserSearch(User user, String query) Creates a new user search. -
Method Summary
Modifier and TypeMethodDescriptionGets the creation timestamp of the search.getQuery()Gets the search query.getUser()Gets the user who made the search.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp of the search.voidSets the search query.voidSets the user who made the search.
-
Constructor Details
-
UserSearch
public UserSearch()Default constructor. -
UserSearch
Creates a new user search.- Parameters:
user- The user who made the search.query- The search query.
-
-
Method Details
-
getUser
Gets the user who made the search.- Returns:
- The user.
-
setUser
Sets the user who made the search.- Parameters:
user- The user.
-
getCreatedAt
Gets the creation timestamp of the search.- Returns:
- The creation timestamp.
-
setCreatedAt
Sets the creation timestamp of the search.- Parameters:
createdAt- The creation timestamp.
-
getQuery
Gets the search query.- Returns:
- The search query.
-
setQuery
Sets the search query.- Parameters:
query- The search query.
-