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

com.tecacet.finance.services.holiday.Country Maven / Gradle / Ivy

Go to download

JFApi connects to various Web Services that provide financial data such as stock prices, splits, dividends, and FX rates.

There is a newer version: 1.1.3
Show newest version
package com.tecacet.finance.services.holiday;

import com.fasterxml.jackson.annotation.JsonAutoDetect;

import java.time.LocalDate;
import java.util.List;

@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
class CountryDate {
    int day;
    int month;
    int year;
}

@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class Country {

    private String countryCode;
    private String fullName;
    private List holidayTypes;
    private List regions;
    private CountryDate fromDate;
    private CountryDate toDate;

    public String getCountryCode() {
        return countryCode;
    }

    public String getFullName() {
        return fullName;
    }

    public List getHolidayTypes() {
        return holidayTypes;
    }

    public List getRegions() {
        return regions;
    }

    public LocalDate getFromDate() {
        return fromDate == null ? null : LocalDate.of(fromDate.year, fromDate.month, fromDate.day);
    }

    public LocalDate getToDate() {
        return toDate == null ? null : LocalDate.of(toDate.year, toDate.month, toDate.day);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy