Skip to content

Commit 765b516

Browse files
committed
fix: replace stable values
1 parent 17db9f7 commit 765b516

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎utils/base/src/main/java/eu/cloudnetservice/utils/base/LazyConstantSupplier.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,10 @@ public LazyConstantSupplier(@NonNull Supplier<? extends T> computingFunction) {
7373
}
7474
}
7575

76-
/** Returns whether the value has already been initialized. */
7776
public boolean initialized() {
7877
return VH_VALUE.getAcquire(this) != null;
7978
}
8079

81-
/** Returns the initialized value, or the fallback without initializing it. */
8280
public @UnknownNullability T orElse(@Nullable T other) {
8381
var value = (T) VH_VALUE.getAcquire(this);
8482
return value != null ? value : other;

0 commit comments

Comments
 (0)