@Test public void testHasCity() { Location location = new Location("Beverly Hills", null, null); Assert.assertTrue(location.hasCity()); Assert.assertFalse(location.hasZipCode()); Assert.assertFalse(location.hasCoordinate()); }
public boolean hasCity() { return isNotEmpty(city); }
Location { public boolean hasCity() { return isNotEmpty(city); } }
Location { public boolean hasCity() { return isNotEmpty(city); } @JsonCreator  Location(
		@JsonProperty("city") String city,
		@JsonProperty("zipCode") String zipCode,
		@JsonProperty("coordinate") Coordinate coordinate,
		@JsonProperty("countryCode") String countryCode);  Location(
		@JsonProperty("city") String city,
		@JsonProperty("zipCode") String zipCode,
		@JsonProperty("coordinate") Coordinate coordinate); }
Location { public boolean hasCity() { return isNotEmpty(city); } @JsonCreator  Location(
		@JsonProperty("city") String city,
		@JsonProperty("zipCode") String zipCode,
		@JsonProperty("coordinate") Coordinate coordinate,
		@JsonProperty("countryCode") String countryCode);  Location(
		@JsonProperty("city") String city,
		@JsonProperty("zipCode") String zipCode,
		@JsonProperty("coordinate") Coordinate coordinate); boolean hasCity(); String getCity(); boolean hasZipCode(); String getZipCode(); boolean hasCoordinate(); Coordinate getCoordinate(); String getCountryCode(); @Override boolean equals(Object o); @Override int hashCode(); }
Location { public boolean hasCity() { return isNotEmpty(city); } @JsonCreator  Location(
		@JsonProperty("city") String city,
		@JsonProperty("zipCode") String zipCode,
		@JsonProperty("coordinate") Coordinate coordinate,
		@JsonProperty("countryCode") String countryCode);  Location(
		@JsonProperty("city") String city,
		@JsonProperty("zipCode") String zipCode,
		@JsonProperty("coordinate") Coordinate coordinate); boolean hasCity(); String getCity(); boolean hasZipCode(); String getZipCode(); boolean hasCoordinate(); Coordinate getCoordinate(); String getCountryCode(); @Override boolean equals(Object o); @Override int hashCode(); static final String UNKNOWN; }