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

com.belladati.sdk.dataset.source.ImportIntervalUnit Maven / Gradle / Ivy

Go to download

The BellaDati SDK allows accessing a BellaDati server from 3rd-party applications using Java. This project contains the SDK's interface definitions.

There is a newer version: 0.9.15.1
Show newest version
package com.belladati.sdk.dataset.source;

/**
 * Units of time at which import intervals can be defined.
 * 
 * @author Chris Hennigfeld
 */
public enum ImportIntervalUnit {
	MINUTE(1), HOUR(60 * MINUTE.minutes), DAY(24 * HOUR.minutes), WEEK(7 * DAY.minutes), MONTH(31 * DAY.minutes), QUARTER(
		3 * MONTH.minutes), YEAR(365 * DAY.minutes);

	private final int minutes;

	private ImportIntervalUnit(int minutes) {
		this.minutes = minutes;
	}

	/**
	 * Returns the number of minutes in this time unit. Used internally inside
	 * the SDK.
	 * 
	 * @return the number of minutes in this time unit
	 */
	public int getMinutes() {
		return minutes;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy