@Override public final void reset() { super.resetCommonProperties(); location = address = ""; latitude = longitude = -1; isFahrennheit = true; locationIncluded = iconIncluded = descriptionIncluded = temperatureIncluded = humidityIncluded = windSpeedIncluded = forecastIncluded = isRectangular = false; textColor = Color.BLACK; backgroundColor = Color.GRAY; }
@Override public void resetOnlyMainProperties(EmbedType embedType) { if (embedType.getName().equals(getName())) { EmbedTypeWeatherInfo etwi = (EmbedTypeWeatherInfo) embedType; location = etwi.location; address = etwi.address; latitude = etwi.latitude; longitude = etwi.longitude; locationIncluded = etwi.locationIncluded; iconIncluded = etwi.iconIncluded; descriptionIncluded = etwi.descriptionIncluded; temperatureIncluded = etwi.temperatureIncluded; isFahrennheit = etwi.isFahrennheit; humidityIncluded = etwi.humidityIncluded; windSpeedIncluded = etwi.windSpeedIncluded; forecastIncluded = etwi.forecastIncluded; isRectangular = etwi.isRectangular; textColor = etwi.textColor; backgroundColor = etwi.backgroundColor; } }