Package com.io7m.jproperties.monad
Interface JPropertyParseMonadType.JPropertySuccessType<A>
- Type Parameters:
A- The type of result values
- All Superinterfaces:
JPropertyParseMonadType<A>
- All Known Implementing Classes:
JPropertySuccess
- Enclosing interface:
- JPropertyParseMonadType<A>
@Immutable
public static interface JPropertyParseMonadType.JPropertySuccessType<A>
extends JPropertyParseMonadType<A>
A result indicating success.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.io7m.jproperties.monad.JPropertyParseMonadType
JPropertyParseMonadType.JPropertyErrorType, JPropertyParseMonadType.JPropertyFailureType<A>, JPropertyParseMonadType.JPropertySuccessType<A>, JPropertyParseMonadType.JPropertyWarningType, JPropertyParseMonadType.Kind, JPropertyParseMonadType.Unit -
Method Summary
Modifier and TypeMethodDescriptiondefault <B> JPropertyParseMonadType<B>flatMap(Function<A, JPropertyParseMonadType<B>> f) Monadic bind for parse values.default JPropertyParseMonadType.Kindkind()default <B> JPropertyParseMonadType<B>Functor map for parse values.result()Methods inherited from interface com.io7m.jproperties.monad.JPropertyParseMonadType
andThen, errors, warnings
-
Method Details
-
kind
- Specified by:
kindin interfaceJPropertyParseMonadType<A>- Returns:
- The kind of result
-
result
A result()- Returns:
- The result of parsing
-
flatMap
Description copied from interface:JPropertyParseMonadTypeMonadic bind for parse values.- Specified by:
flatMapin interfaceJPropertyParseMonadType<A>- Type Parameters:
B- The type of result values- Parameters:
f- A function to apply to the current value- Returns:
- A monad
-
map
Description copied from interface:JPropertyParseMonadTypeFunctor map for parse values.- Specified by:
mapin interfaceJPropertyParseMonadType<A>- Type Parameters:
B- The type of result values- Parameters:
f- A function to apply to the current value- Returns:
- A monad
-