Interface JPropertyParseMonadType<A>

Type Parameters:
A - The type of returned values
All Known Subinterfaces:
JPropertyParseMonadType.JPropertyFailureType<A>, JPropertyParseMonadType.JPropertySuccessType<A>
All Known Implementing Classes:
JPropertyFailure, JPropertySuccess

public interface JPropertyParseMonadType<A>
A parser monad.
  • Method Details

    • kind

      Returns:
      The kind of result
    • warnings

      java.util.List<JPropertyWarning> warnings()
      Returns:
      The accumulated warnings
    • errors

      java.util.List<JPropertyError> errors()
      Returns:
      The accumulated errors
    • flatMap

      <B> JPropertyParseMonadType<B> flatMap​(java.util.function.Function<A,​JPropertyParseMonadType<B>> f)
      Monadic bind for parse values.
      Type Parameters:
      B - The type of result values
      Parameters:
      f - A function to apply to the current value
      Returns:
      A monad
    • andThen

      default <B> JPropertyParseMonadType<B> andThen​(java.util.function.Supplier<JPropertyParseMonadType<B>> f)
      Monadic bind for parse values.
      Type Parameters:
      B - The type of result values
      Parameters:
      f - A function to apply to the current value
      Returns:
      A monad
    • map

      <B> JPropertyParseMonadType<B> map​(java.util.function.Function<A,​B> f)
      Functor map for parse values.
      Type Parameters:
      B - The type of result values
      Parameters:
      f - A function to apply to the current value
      Returns:
      A monad