コード例 #1
0
 @Override
 public void update(Observable observable, Object arg) {
   if (observable instanceof WeatherData) {
     WeatherData weatherData = (WeatherData) observable;
     lastPressure = currentPressure;
     currentPressure = weatherData.getPressure();
     display();
   }
 }