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

com.absmartly.sdk.java.time.Clock Maven / Gradle / Ivy

package com.absmartly.sdk.java.time;

import com.absmartly.sdk.java.time.internal.FixedClock;
import com.absmartly.sdk.java.time.internal.SystemClockUTC;

public abstract class Clock {
	public abstract long millis();

	static public Clock fixed(long millis) {
		return new FixedClock(millis);
	}

	static public Clock systemUTC() {
		if (utc_ != null) {
			return utc_;
		}

		return utc_ = new SystemClockUTC();
	}

	static SystemClockUTC utc_;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy