com.tecacet.finance.services.holiday.Holiday 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 com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.time.LocalDate;
import java.util.List;
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
class HolidayDate {
int day;
int month;
int year;
int dayOfWeek;
}
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class Holiday {
private HolidayDate date;
private String holidayType;
private List name;
public LocalDate getDate() {
return LocalDate.of(date.year, date.month, date.day);
}
public String getHolidayType() {
return holidayType;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy