Interface Parser<I,​O>

Type Parameters:
I - the input
O - the output
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface Parser<I,​O>
Represents a function that parses an input value and produces an output.

This is a functional interface whose functional method is #parse(I).

Since:
0.5
Version:
2.1, 2019-01-31
Author:
Werner Keil
See Also:
MeasurementParseException
  • Method Summary

    Modifier and Type Method Description
    O parse​(I input)
    Parses the specified I to produce a O.
  • Method Details

    • parse

      O parse​(I input) throws javax.measure.format.MeasurementParseException
      Parses the specified I to produce a O.
      Parameters:
      input - the input to parse
      Returns:
      the parse result
      Throws:
      javax.measure.format.MeasurementParseException - if any problem occurs while parsing the specified input (e.g. illegal syntax).