Added hasValue function for Lazy (#148)

This commit is contained in:
楓 authored and GitHub committed 2025-06-19 11:10:01 +02:00
1 parent a68624401a
commit 275552fe04
1 file changed
+4
@@ -40,6 +40,10 @@ public class Lazy<T> implements Supplier<T> {
return value;
}
public synchronized boolean hasValue() {
return hasValue;
}
/**
* Initializes the value. {@link #get()}, but with a more readable method name.
*/