Package org.gbif.api.model.collections
Class Address
- java.lang.Object
-
- org.gbif.api.model.collections.Address
-
- All Implemented Interfaces:
Serializable,LenientEquals<Address>
public class Address extends Object implements Serializable, LenientEquals<Address>
The particulars of the place where a institution of collection is situated.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAddress()Textual direction of this address.StringgetCity()City where this address is located.CountrygetCountry()Country where this address is located.@Null(groups=PrePersist.class) IntegergetKey()Unique identifier, assigned by the persistence store.StringgetPostalCode()International postal code of this address.StringgetProvince()Province, region or area where this address is located.inthashCode()booleanlenientEquals(Address other)Leniently tests if the objects are the same.voidsetAddress(String address)voidsetCity(String city)voidsetCountry(Country country)voidsetKey(Integer key)voidsetPostalCode(String postalCode)voidsetProvince(String province)StringtoString()
-
-
-
Constructor Detail
-
Address
public Address()
-
-
Method Detail
-
getKey
@Null(groups=PrePersist.class) public @Null(groups=PrePersist.class) Integer getKey()
Unique identifier, assigned by the persistence store.
-
getAddress
public String getAddress()
Textual direction of this address.
-
setAddress
public void setAddress(String address)
-
getProvince
public String getProvince()
Province, region or area where this address is located.
-
setProvince
public void setProvince(String province)
-
getPostalCode
public String getPostalCode()
International postal code of this address.
-
setPostalCode
public void setPostalCode(String postalCode)
-
getCountry
@Nullable public Country getCountry()
Country where this address is located.
-
setCountry
public void setCountry(Country country)
-
lenientEquals
public boolean lenientEquals(Address other)
Description copied from interface:LenientEqualsLeniently tests if the objects are the same. Implementors should declare what this means in practice.- Specified by:
lenientEqualsin interfaceLenientEquals<Address>- Parameters:
other- To compare against- Returns:
- true if...
-
-