All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thanglequoc.aqicalculator.PollutantsBreakpoint Maven / Gradle / Ivy

Go to download

AQI Calculator give the detail result from AQI calculation. It also supports NowCast

The newest version!
package com.thanglequoc.aqicalculator;

import java.util.ArrayList;
import java.util.List;

/**
 * PollutantsBreakpoint, which represent the whole AQI breakpoint table
 * 

* It contain a list of smaller PollutantBreakpoint, each * PollutantBreakpoint in this list represent breakpoint of a * pollutant code * * @author ThangLeQuoc */ class PollutantsBreakpoint { private List breakpoints; /** * Instantiates a new pollutants breakpoint . */ PollutantsBreakpoint() { breakpoints = new ArrayList<>(); } void addPollutantBreakpoint(PollutantBreakpoint pollutantBreakpoint) { this.breakpoints.add(pollutantBreakpoint); } PollutantBreakpoint getBreakpointOfPollutant(Pollutant pollutant) { for (PollutantBreakpoint pollutantBreakpoint : breakpoints) { if (pollutantBreakpoint.getPollutant().equals(pollutant)) { return pollutantBreakpoint; } } return null; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy