public final class Country extends Object implements Serializable, Comparable<Country>
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected String |
number |
protected String |
threeLetter |
protected String |
twoLetter |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Country o) |
boolean |
equals(Object obj) |
static List<Country> |
findAllByCode(String... countries) |
static Country |
getByCode(String code)
Get MidCountry by ISO 3166 two or three letter code
|
static Country |
getByMid(int mid)
Get MidCountry by MID
|
static Country |
getCountryForMmsi(Integer mmsi) |
static Map<Integer,Country> |
getMidMap() |
HashSet<Integer> |
getMids() |
String |
getName() |
String |
getNumber() |
String |
getThreeLetter() |
String |
getTwoLetter() |
int |
hashCode() |
boolean |
matchMid(int mid) |
String |
toString() |
protected final String name
protected final String number
protected final String threeLetter
protected final String twoLetter
public String getName()
public String getNumber()
public String getThreeLetter()
public String getTwoLetter()
public boolean matchMid(int mid)
public static Country getByCode(String code)
code - the codepublic static Country getByMid(int mid)
mid - the codepublic int compareTo(Country o)
compareTo in interface Comparable<Country>Copyright © 2012–2015 Danish Maritime Authority. All rights reserved.