Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tomaszpolanski/Options
/ map
Method
map
options/core/src/main/java/polanski/option/Some.java:55–59 ·
view source on GitHub ↗
(@NotNull final Func1<T, OUT> f)
Source
from the content-addressed store, hash-verified
53
}
54
55
@NotNull
56
@Override
57
public
<OUT> Option<OUT> map(@NotNull
final
Func1<T, OUT> f) {
58
return
ofObj(f.call(mValue));
59
}
60
61
@NotNull
62
@Override
Callers
6
testMap_whenSome
Method · 0.45
testMap_whenNone
Method · 0.45
testLiftMany_whenFirstIsNone_returnNone
Method · 0.45
testLiftMany_whenAnyIsNone_returnNone
Method · 0.45
testLiftMany_whenAllAreSome_returnSome
Method · 0.45
lift
Method · 0.45
Calls
2
ofObj
Method · 0.80
call
Method · 0.65
Tested by
5
testMap_whenSome
Method · 0.36
testMap_whenNone
Method · 0.36
testLiftMany_whenFirstIsNone_returnNone
Method · 0.36
testLiftMany_whenAnyIsNone_returnNone
Method · 0.36
testLiftMany_whenAllAreSome_returnSome
Method · 0.36