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

io.github.mivek.service.AbstractWeatherCodeService Maven / Gradle / Ivy

There is a newer version: 2.16.3
Show newest version
package io.github.mivek.service;

import io.github.mivek.model.AbstractWeatherCode;
import io.github.mivek.parser.AbstractParser;

/**
 * Abstract service.
 *
 * @param  a concrete sub-class of {@link AbstractWeatherCode}.
 * @author mivek
 * Abstract class for the service.
 */
public abstract class AbstractWeatherCodeService implements IWeatherCodeFacade {
    /**
     * Const for icao length.
     */
    public static final int ICAO = 4;

    /**
     * The parser.
     */
    private final AbstractParser fParser;

    /**
     * Protected constructor to be used by sub-classes.
     *
     * @param parser the parser to set.
     */
    protected AbstractWeatherCodeService(final AbstractParser parser) {
        fParser = parser;
    }

    /**
     * @return the parser.
     */
    protected AbstractParser getParser() {
        return fParser;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy