mirror of
https://github.com/GTNewHorizons/GTNHLib.git
synced 2026-11-27 15:23:15 +00:00
Added hasValue function for Lazy (#148)
This commit is contained in:
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.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user