Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tomaszpolanski/Options
/ ifSome
Method
ifSome
options/core/src/main/java/polanski/option/Some.java:43–47 ·
view source on GitHub ↗
(@NotNull final Action1<T> action)
Source
from the content-addressed store, hash-verified
41
}
42
43
@Override
44
public
Option<T> ifSome(@NotNull
final
Action1<T> action) {
45
action.call(mValue);
46
return
this;
47
}
48
49
@Override
50
public
Option<T> ifNone(@NotNull
final
Action0 action) {
Callers
2
testIfSome_whenSome
Method · 0.45
testIfSome_whenNone
Method · 0.45
Calls
1
call
Method · 0.65
Tested by
2
testIfSome_whenSome
Method · 0.36
testIfSome_whenNone
Method · 0.36