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 boolean
equals(Object o)
String
getAddress()
Textual direction of this address.String
getCity()
City where this address is located.Country
getCountry()
Country where this address is located.@Null(groups=PrePersist.class) Integer
getKey()
Unique identifier, assigned by the persistence store.String
getPostalCode()
International postal code of this address.String
getProvince()
Province, region or area where this address is located.int
hashCode()
boolean
lenientEquals(Address other)
Leniently tests if the objects are the same.void
setAddress(String address)
void
setCity(String city)
void
setCountry(Country country)
void
setKey(Integer key)
void
setPostalCode(String postalCode)
void
setProvince(String province)
String
toString()
-
-
-
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:LenientEquals
Leniently tests if the objects are the same. Implementors should declare what this means in practice.- Specified by:
lenientEquals
in interfaceLenientEquals<Address>
- Parameters:
other
- To compare against- Returns:
- true if...
-
-