Top Description Methods
tech.uom.lib.common.function

public Interface Parser<I, O>

Annotations
@FunctionalInterface
Type Parameters
<I>
the input
<O>
the output
Imports
javax.measure.format.MeasurementParseException

Represents a function that parses an input value and produces an output.

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

Author
Werner Keil
Since
0.5
Version
2.1, 2019-01-31
See Also
MeasurementParseException

Method Summary

Modifier and TypeMethod and Description
public O

Returns:

the parse result
parse
(I
the input to parse
input
)

Parses the specified I to produce a O.

Method Detail

parseback to summary
public O parse(I input) throws MeasurementParseException

Parses the specified I to produce a O.

Parameters
input:I

the input to parse

Returns:O

the parse result

Exceptions
MeasurementParseException:
if any problem occurs while parsing the specified input (e.g. illegal syntax).