| Package | Description |
|---|---|
| no.digipost.concurrent | |
| no.digipost.util |
| Modifier and Type | Class and Description |
|---|---|
class |
OneTimeAssignment<V>
A reference which may or may not be assigned a value, with the added constraint
that it can only be assigned once.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
AtMostOne<T>
This class offers a subtle functionality which is not available in the
Collection/Stream API of Java: to retrieve the only element that is expected to be present,
and, importantly,
throw an exception if there are elements that will be discarded
if assuming that there is at most one element present. |
Copyright © 2016 Digipost. All rights reserved.