| 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 |
Assignment<V>
An assignment may or may not be assigned, the assigned value can be retrieved with
Supplier.get()
and will return null if unassigned, and may be assigned with Assignment.set(Object) if the
assignment allows (re-)assignment. |
interface |
AtMostOne<T>
This class offers a subtle functionality which is not available in the
Collection 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. |
static interface |
ViewableAsOptional.Single<V>
A
Supplier which is also ViewableAsOptional. |
| Modifier and Type | Class and Description |
|---|---|
class |
ChainableAssignment<V,C>
An
Assignment with the added ability to chain several assignments
with ChainableAssignment.is(Object). |
Copyright © 2018 Digipost. All rights reserved.