| java.lang.Object | |
| ↳ | com.atlassian.upm.api.util.Option<A> |
This class is deprecated.
It's 2021. Just use java.util.Optional. Plus there's the same class in com.atlassian.fugue
An Option<T> is a wrapper for a value of type T. It can be either a none() or a
some(Object)}
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
since 5.0, it will be removed in 6.0; use
exists(Predicate) instead
| |||||||||||
This method is deprecated.
since 5.0, it will be removed in 6.0; use
filter(Predicate) instead
| |||||||||||
Apply
f to the wrapped value. | |||||||||||
This method is deprecated.
since 5.0, it will be removed in 6.0; use
flatMap(Function) instead
| |||||||||||
If this is a some value apply the some function, otherwise get the none value.
| |||||||||||
This method is deprecated.
since 5.0, it will be removed in 6.0; use
fold(Supplier, Function) instead
| |||||||||||
Returns wrapped value if this is a
some, otherwise returns other. | |||||||||||
This method is deprecated.
since 5.0, it will be removed in 6.0; use
getOrElse(Supplier) instead
| |||||||||||
Apply
f to the wrapped value. | |||||||||||
This method is deprecated.
since 5.0, it will be removed in 6.0; use
map(Function) instead
| |||||||||||
This method is deprecated.
since 5.0, it will be removed in 6.0; use
Option::none instead
| |||||||||||
This method is deprecated.
since 5.0, it will be removed in 6.0; use
Option::option instead
| |||||||||||
Returns
this if this is a some, otherwise returns orElse. | |||||||||||
Returns
this if this is a some, otherwise returns orElse. | |||||||||||
This method is deprecated.
since 5.0, it will be removed in 6.0; use
orElse(Supplier) instead
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Iterable
| |||||||||||
This method is deprecated.
since 5.0, it will be removed in 6.0; use exists(Predicate) instead
| 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
This method is deprecated.
since 5.0, it will be removed in 6.0; use filter(Predicate) instead
Apply f to the wrapped value.
| f | function to apply to wrapped value |
|---|
f
This method is deprecated.
since 5.0, it will be removed in 6.0; use flatMap(Function) instead
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 |
This method is deprecated.
since 5.0, it will be removed in 6.0; use fold(Supplier, Function) instead
Returns wrapped value if this is a some, otherwise returns other.
| other | value to return if this is a none |
|---|
some, otherwise returns other
This method is deprecated.
since 5.0, it will be removed in 6.0; use getOrElse(Supplier) instead
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 |
|---|
This method is deprecated.
since 5.0, it will be removed in 6.0; use map(Function) instead
See map(Function)
This method is deprecated.
since 5.0, it will be removed in 6.0; use Option::none instead
This method is deprecated.
since 5.0, it will be removed in 6.0; use Option::option instead
Returns this if this is a some, otherwise returns orElse.
Returns this if this is a some, otherwise returns orElse.
This method is deprecated.
since 5.0, it will be removed in 6.0; use orElse(Supplier) instead
See orElse(Supplier)