| 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 none() 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. | |||||||||||
Returns
this if this is a some, otherwise returns orElse. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Iterable
| |||||||||||
| f | the predicate to apply if we are a some |
|---|
true if this is a some value for which the predicate returns true, otherwise false
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 |
Returns wrapped value if this is a some, otherwise returns other.
| other | value to return if this is a none |
|---|
some, otherwise returns other
some, otherwise return the value supplied from the Supplier
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.
Returns this if this is a some, otherwise returns orElse.