| Package | Description |
|---|---|
| no.digipost.util |
| Modifier and Type | Method and Description |
|---|---|
static <T> AtMostOne<T> |
AtMostOne.from(Collection<T> list) |
static <T> AtMostOne<T> |
AtMostOne.from(Iterable<T> iterable) |
static <T> AtMostOne<T> |
AtMostOne.from(Stream<T> stream)
Deprecated.
If getting the only item in a
Stream, collect the stream
using DiggCollectors.allowAtMostOne() instead. |
Copyright © 2016 Digipost. All rights reserved.