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

Method map

options/core/src/main/java/polanski/option/Option.java:80–81  ·  view source on GitHub ↗

Converts inner value with @selector if value exists, otherwise does nothing @param selector Function that converts inner value @param Result type @return If value exists, returns converted value otherwise does nothing

(@NotNull final Func1<T, OUT> selector)

Source from the content-addressed store, hash-verified

78 * @return If value exists, returns converted value otherwise does nothing
79 */
80 @NotNull
81 public abstract <OUT> Option<OUT> map(@NotNull final Func1<T, OUT> selector);
82
83 /**
84 * Binds option to another option

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected