public class Once extends Object
CheckedRunnable is executed only once.| Modifier and Type | Class and Description |
|---|---|
static class |
Once.RunOnce
Wrapper that ensures a
CheckedRunnable is executed only once, even if Once.RunOnce.runOnce() is called multiple times. |
| Modifier and Type | Method and Description |
|---|---|
static Once.RunOnce |
of(CheckedRunnable runnable)
Creates a
Once.RunOnce wrapper that ensures the given runnable is executed only once. |
public static Once.RunOnce of(CheckedRunnable runnable)
Once.RunOnce wrapper that ensures the given runnable is executed only once.runnable - the runnable to wrapCopyright © 2026. All rights reserved.