com.tecacet.finance.services.holiday.Country Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jfapi Show documentation
Show all versions of jfapi Show documentation
JFApi connects to various Web Services that provide financial data such as stock prices,
splits, dividends, and FX rates.
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