| Modifier and Type | Field and Description |
|---|---|
| private final AtomicBoolean | |
| pack-priv final T |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public static < type of input on which operation is applied. T> OnceConsumer |
| hasRun | back to summary |
|---|---|
| private final AtomicBoolean hasRun | |
| t | back to summary |
|---|---|
| pack-priv final T t | |
| OnceConsumer | back to summary |
|---|---|
| private OnceConsumer(T t) | |
| applyOnce | back to summary |
|---|---|
| public void applyOnce(Consumer<T> consumer) Apply a computation on subject only once.
| |
| of | back to summary |
|---|---|
| public static <T> OnceConsumer Create a do once consumer.
| |