| java.lang.Object | |
| ↳ | com.atlassian.upm.api.util.Option<A> |
An Option<T> is a wrapper for a value of type T. It can be either a Option# or a some(Object)}
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Apply
f to the wrapped value. | |||||||||||
If this is a some value apply the some function, otherwise get the none value.
| |||||||||||
Returns wrapped value if this is a
some, otherwise returns other. | |||||||||||
Apply
f to the wrapped value. | |||||||||||
Returns
this if this is a some, otherwise returns orElse. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Iterable
| |||||||||||
Apply f to the wrapped value.
| f | function to apply to wrapped value |
|---|
f
If this is a some value apply the some function, otherwise get the none value.
| none | the supplier of the None type |
|---|---|
| some | the function to apply if we are a some |
some, otherwise return the value supplied from the Supplier
Returns wrapped value if this is a some, otherwise returns other.
| other | value to return if this is a none |
|---|
some, otherwise returns other
true if this is a some, false otherwise.
Apply f to the wrapped value.
| f | function to apply to wrapped value |
|---|
Returns this if this is a some, otherwise returns orElse.