Class Address
java.lang.Object
com.fiap.tech_challenge.parte1.ms_users.entities.Address
Represents a physical address associated with a user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCity()
Returns the city where this address is located.Returns the complement information of this address (e.g., apartment, suite).getId()
Returns the unique identifier of this address.Returns the neighborhood of this address.int
Returns the street number of this address.getState()
Returns the state where this address is located.Returns the street name of this address.Returns the identifier of the user associated with this address.Returns the postal code (zipcode) of this address.
-
Constructor Details
-
Address
public Address()Default constructor for Address.
-
-
Method Details
-
getId
Returns the unique identifier of this address.- Returns:
- the UUID of the address
-
getZipcode
Returns the postal code (zipcode) of this address.- Returns:
- the zipcode as a String
-
getStreet
Returns the street name of this address.- Returns:
- the street name as a String
-
getNumber
public int getNumber()Returns the street number of this address.- Returns:
- the street number as an int
-
getComplement
Returns the complement information of this address (e.g., apartment, suite).- Returns:
- the complement as a String, or null if none
-
getNeighborhood
Returns the neighborhood of this address.- Returns:
- the neighborhood as a String
-
getCity
Returns the city where this address is located.- Returns:
- the city as a String
-
getState
Returns the state where this address is located.- Returns:
- the state as a String
-
getUserId
Returns the identifier of the user associated with this address.- Returns:
- the user ID as a String
-