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

xsbti.api.AbstractLazy Maven / Gradle / Ivy

There is a newer version: 0.13.15
Show newest version
/* sbt -- Simple Build Tool
 * Copyright 2010  Mark Harrah
 */
package xsbti.api;

	import java.io.ObjectStreamException;

public abstract class AbstractLazy implements Lazy, java.io.Serializable
{
	private Object writeReplace() throws ObjectStreamException
	{
		return new StrictLazy(get());
	}
	private static final class StrictLazy implements Lazy, java.io.Serializable
	{
		private final T value;
		StrictLazy(T t)
		{
			value = t;
		}
		public T get()
		{
			return value;
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy