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

Method from

options/core/src/main/java/polanski/option/Unit.java:25–29  ·  view source on GitHub ↗

Runs an action and returns a unit. @param action to be executed @return Unit

(@NotNull final Action0 action)

Source from the content-addressed store, hash-verified

23 * @return Unit
24 */
25 @NotNull
26 public static Unit from(@NotNull final Action0 action) {
27 action.call();
28 return DEFAULT;
29 }
30
31 /**
32 * Ignores an action and returns a unit.

Callers 2

matchActionMethod · 0.80
matchActionMethod · 0.80

Calls 1

callMethod · 0.65

Tested by

no test coverage detected