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

nl.vpro.beeldengeluid.gtaa.GTAAGeographicNameProvider Maven / Gradle / Ivy

There is a newer version: 8.3.3
Show newest version
package nl.vpro.beeldengeluid.gtaa;

import java.util.Optional;
import java.util.stream.Stream;

import org.checkerframework.checker.nullness.qual.NonNull;
import org.meeuw.i18n.regions.spi.RegionProvider;

import nl.vpro.domain.gtaa.GTAAGeographicName;

/**
 * I think we may use OpenSkos as a region provider.
 *
 * Just an idea, will try to test this out.
 *
 * @author Michiel Meeuwissen
 * @since 5.11
 */
public class GTAAGeographicNameProvider implements RegionProvider {

    @Override
    public Class getProvidedClass() {
        return GTAAGeographicName.class;

    }

    @Override
    public Stream values() {
        // TODO
        return Stream.empty();

    }
    @Override
    public Optional getByCode(@NonNull String code, boolean lenient) {
        // TODO
        return values().filter(r -> r.getCode().equals(code)).findFirst();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy