@Test public void testCountry() { assertSame(Country.getByCode("DNK"), Country.getCountryForMmsi(220123456)); }
private Country(String name, String twoLetter, String threeLetter, String number) { this.name = name; this.twoLetter = twoLetter; this.threeLetter = threeLetter; this.number = number; }
Country implements Serializable, Comparable<Country> { private Country(String name, String twoLetter, String threeLetter, String number) { this.name = name; this.twoLetter = twoLetter; this.threeLetter = threeLetter; this.number = number; } }
Country implements Serializable, Comparable<Country> { private Country(String name, String twoLetter, String threeLetter, String number) { this.name = name; this.twoLetter = twoLetter; this.threeLetter = threeLetter; this.number = number; } private  Country(String name, String twoLetter, String threeLetter, String number); }
Country implements Serializable, Comparable<Country> { private Country(String name, String twoLetter, String threeLetter, String number) { this.name = name; this.twoLetter = twoLetter; this.threeLetter = threeLetter; this.number = number; } private  Country(String name, String twoLetter, String threeLetter, String number); @Override boolean equals(Object obj); HashSet<Integer> getMids(); String getName(); String getNumber(); String getThreeLetter(); String getTwoLetter(); @Override int hashCode(); boolean matchMid(int mid); @Override String toString(); static Country getByCode(String code); static Country getByMid(int mid); static Country getCountryForMmsi(Integer mmsi); static Map<Integer, Country> getMidMap(); static List<Country> findAllByCode(String... countries); @Override int compareTo(Country o); }
Country implements Serializable, Comparable<Country> { private Country(String name, String twoLetter, String threeLetter, String number) { this.name = name; this.twoLetter = twoLetter; this.threeLetter = threeLetter; this.number = number; } private  Country(String name, String twoLetter, String threeLetter, String number); @Override boolean equals(Object obj); HashSet<Integer> getMids(); String getName(); String getNumber(); String getThreeLetter(); String getTwoLetter(); @Override int hashCode(); boolean matchMid(int mid); @Override String toString(); static Country getByCode(String code); static Country getByMid(int mid); static Country getCountryForMmsi(Integer mmsi); static Map<Integer, Country> getMidMap(); static List<Country> findAllByCode(String... countries); @Override int compareTo(Country o);  }