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

io.deephaven.time.calendar.CalendarsFromConfigurationModule Maven / Gradle / Ivy

There is a newer version: 0.37.1
Show newest version
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.time.calendar;

import dagger.Module;
import dagger.Provides;
import dagger.multibindings.ElementsIntoSet;

import java.util.HashSet;
import java.util.Set;

/**
 * Provides the {@link BusinessCalendar business calendars} from {@link Calendars#calendarsFromConfiguration()}.
 */
@Module
public interface CalendarsFromConfigurationModule {

    @Provides
    @ElementsIntoSet
    static Set providesCalendarsFromConfiguration() {
        return new HashSet<>(Calendars.calendarsFromConfiguration());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy