mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-15 02:39:45 +00:00
[AB-xxx] fixing exact temperatures not leading to an appropriate color for weather service
This commit is contained in:
@@ -61,7 +61,7 @@ public class WeatherServiceBean implements WeatherService {
|
||||
return Color.decode(TEMPERATURE_COLOR_MAP.get(TEMPERATURE_COLOR_MAP
|
||||
.keySet()
|
||||
.stream()
|
||||
.filter(pair -> pair.getLeft() < temperature && pair.getRight() > temperature)
|
||||
.filter(pair -> pair.getLeft() < temperature && pair.getRight() >= temperature)
|
||||
.findFirst().orElse(TEMPERATURE_COLOR_MAP.keySet().iterator().next())));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user