Package nbbrd.io.text

Interface Parser<T>

Type Parameters:
T - The type of the object to be created
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<T>
Defines a class that creates an object from a CharSequence.
For example, you could use it to parse a String into a Date. Note that it can also be used to convert a String to a new one.
The parser must not throw Exceptions; it must swallow it and return null. This means that null is not considered has a value (same as Collection API). To create a "null value" from a parser, you should use the NullObject pattern.
Author:
Philippe Charles
See Also: