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

com.tecacet.finance.services.holiday.Holiday 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 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