|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Option | |
|---|---|
| net.sf.staccatocommons.lang | This package contains Options, SoftExceptions
and null handling utilities. |
| Uses of Option in net.sf.staccatocommons.lang |
|---|
| Subclasses of Option in net.sf.staccatocommons.lang | |
|---|---|
class |
None<T>
An undefined Option, that it, and option that does not have a value |
class |
Some<T>
A defined Option, that is, an option that holds a value. |
| Methods in net.sf.staccatocommons.lang that return Option | ||
|---|---|---|
Option<A> |
Option.filter(net.sf.staccatocommons.defs.Evaluable<? super A> predicate)
Answers this option if defined and the given predicate
evaluates to true. |
|
|
Option.map(net.sf.staccatocommons.defs.Applicable<? super A,? extends T2> function)
Applies the given function to the Option's value and wraps it
into an Option, if defined. |
|
static
|
Option.nullToNone(T value)
Creates an option (defined or not), mapping null values to undefined options, and non nulls to defined option. |
|
Option<T> |
None.skip(T element)
|
|
Option<T> |
Some.skip(T element)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||