MCPcopy Create free account
hub / github.com/tomaszpolanski/Options / match

Method match

options/core/src/main/java/polanski/option/Some.java:97–102  ·  view source on GitHub ↗
(@NotNull final Func1<T, OUT> fSome,
                           @NotNull final Func0<OUT> fNone)

Source from the content-addressed store, hash-verified

95 }
96
97 @NotNull
98 @Override
99 public <OUT> OUT match(@NotNull final Func1<T, OUT> fSome,
100 @NotNull final Func0<OUT> fNone) {
101 return fSome.call(mValue);
102 }
103
104 @NotNull
105 @Override

Callers 2

testMatch_whenSomeMethod · 0.45
testMatch_whenNoneMethod · 0.45

Calls 1

callMethod · 0.65

Tested by 2

testMatch_whenSomeMethod · 0.36
testMatch_whenNoneMethod · 0.36