public abstract class Country extends Object implements Serializable
Represents a country.
Modifier and Type | Class and Description |
---|---|
static class |
Country.Factory
Constructs new instances of
Country . |
Constructor and Description |
---|
Country() |
Modifier and Type | Method and Description |
---|---|
String |
attributesToString()
Builds a string showing the current attribute values
|
boolean |
equals(Object object)
Returns
true if the argument is an Country instance and all identifiers for this
entity equal the identifiers of the argument entity. |
String |
getCountryCode()
The code of the country
|
Long |
getId() |
String |
getName()
The name of the country
|
int |
hashCode()
Returns a hash code based on this entity's identifiers.
|
void |
setCountryCode(String countryCode) |
void |
setId(Long id) |
void |
setName(String name) |
public String attributesToString()
public boolean equals(Object object)
true
if the argument is an Country instance and all identifiers for this
entity equal the identifiers of the argument entity. Returns false
otherwise.public String getCountryCode()
The code of the country
public Long getId()
public String getName()
The name of the country
public int hashCode()
public void setCountryCode(String countryCode)
public void setId(Long id)
public void setName(String name)
Copyright © 2019 Communote team. All rights reserved.