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

com.iprogrammerr.gentle.request.initialization.StickyInitialization Maven / Gradle / Ivy

package com.iprogrammerr.gentle.request.initialization;

public final class StickyInitialization implements Initialization {

	private final Initialization base;
	private T value;

	public StickyInitialization(Initialization base) {
		this.base = base;
	}

	@Override
	public T value() {
		if (this.value == null) {
			this.value = this.base.value();
		}
		return this.value;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy