public class City
Modifier and Type | Class and Description |
---|---|
static class |
City.Static |
Modifier and Type | Field and Description |
---|---|
static City.Static |
Static |
Constructor and Description |
---|
City(Integer id,
String name,
Coord coordData,
String countryCode,
Long population) |
City() |
Modifier and Type | Method and Description |
---|---|
Integer |
component1() |
String |
component2() |
Coord |
component3() |
String |
component4() |
Long |
component5() |
City |
copy(Integer id,
String name,
Coord coordData,
String countryCode,
Long population) |
boolean |
equals(Object p) |
static City |
fromJson(String json) |
Coord |
getCoordData() |
String |
getCountryCode() |
Integer |
getId() |
String |
getName() |
Long |
getPopulation() |
boolean |
hasCoordData() |
boolean |
hasCountryCode() |
boolean |
hasId() |
boolean |
hasName() |
boolean |
hasPopulation() |
int |
hashCode() |
static String |
toJson(City pojo) |
static String |
toJsonPretty(City pojo) |
String |
toString() |
public static City.Static Static
public City(Integer id, String name, Coord coordData, String countryCode, Long population)
public City()
public boolean hasId()
public boolean hasName()
public boolean hasCoordData()
public boolean hasCountryCode()
public boolean hasPopulation()
public Integer getId()
public String getName()
public Coord getCoordData()
public String getCountryCode()
public Long getPopulation()
public Integer component1()
public String component2()
public Coord component3()
public String component4()
public Long component5()
public City copy(Integer id, String name, Coord coordData, String countryCode, Long population)
public String toString()
public int hashCode()
public boolean equals(Object p)
public static City fromJson(String json)
public static String toJson(City pojo)
public static String toJsonPretty(City pojo)