com.iprogrammerr.gentle.request.initialization.UnreliableStickyInitialization Maven / Gradle / Ivy
package com.iprogrammerr.gentle.request.initialization;
public final class UnreliableStickyInitialization implements UnreliableInitialization {
private final UnreliableInitialization base;
private T value;
public UnreliableStickyInitialization(UnreliableInitialization base) {
this.base = base;
}
@Override
public T value() throws Exception {
if (this.value == null) {
this.value = this.base.value();
}
return this.value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy