Package | Description |
---|---|
net.java.truecommons.shed |
Hosts small but useful tools and utilities that didn't fit anywhere else.
|
Modifier and Type | Method and Description |
---|---|
static <T> Option<T> |
Option.apply(T element)
Returns an option for the given nullable element.
|
static <T> Option<T> |
Option.none()
Returns an option with no element.
|
Option<E> |
Option.orElse(Option<E> alternative)
If an element is present in this collection, then this collection is
returned, or otherwise the given alternative.
|
static <T> Option<T> |
Option.some(T element)
Returns an option with the given element.
|
Modifier and Type | Method and Description |
---|---|
Option<E> |
Option.orElse(Option<E> alternative)
If an element is present in this collection, then this collection is
returned, or otherwise the given alternative.
|
Copyright © 2012–2016 Schlichtherle IT Services. All rights reserved.