Package org.localify.user.support
Class UserRecentCityView
java.lang.Object
org.localify.user.support.UserRecentCityView
Represents a recent city view by a user.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the composite key for a user recent city view. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor.UserRecentCityView(User user, City city) Creates a new user recent city view. -
Method Summary
Modifier and TypeMethodDescriptiongetCity()Gets the city.Gets the creation timestamp.getKey()Gets the key.Gets the last update timestamp.getUser()Gets the user.voidSets the city.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp.voidSets the key.voidsetUpdatedAt(Instant updatedAt) Sets the last update timestamp.voidSets the user.
-
Constructor Details
-
UserRecentCityView
protected UserRecentCityView()Default constructor. -
UserRecentCityView
Creates a new user recent city view.- Parameters:
user- The user.city- The city.
-
-
Method Details
-
getKey
Gets the key.- Returns:
- The key.
-
setKey
Sets the key.- Parameters:
key- The key.
-
getUser
Gets the user.- Returns:
- The user.
-
setUser
Sets the user.- Parameters:
user- The user.
-
getCreatedAt
Gets the creation timestamp.- Returns:
- The creation timestamp.
-
setCreatedAt
Sets the creation timestamp.- Parameters:
createdAt- The creation timestamp.
-
getCity
Gets the city.- Returns:
- The city.
-
setCity
Sets the city.- Parameters:
city- The city.
-
getUpdatedAt
Gets the last update timestamp.- Returns:
- The last update timestamp.
-
setUpdatedAt
Sets the last update timestamp.- Parameters:
updatedAt- The last update timestamp.
-