io.deephaven.time.calendar.CalendarsFromConfigurationModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-engine-time Show documentation
Show all versions of deephaven-engine-time Show documentation
Engine Time: Types and libraries for working with instants, periods, and calendars
//
// 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