Parse a bunch of readable sources given a Functor (see Functors, Monads, Applicatives – can be so simple).
Parse a bunch of readable sources given a Functor (see Functors, Monads, Applicatives – can be so simple).
the functor type
a container of instances to convert into type the output type
a function instance
a container F of the output type B
Parse a bunch of readable sources from a java collection and return the results.
Parse a bunch of readable sources from a java collection and return the results.
a collection of sources from which
Parse a list of readable sources and return the results.
Parse a list of readable sources and return the results.
a list of readable sources containing the necessary information to parse the resource and produce the proper outputs.
a list of objects produced by parsing the resources in the readable types.
Allows a way to read multiple readable types at once. This is especially useful because we can use this in spring with a model factory that is prototype scoped so that we can create the model factory once, it reads all of the models in bulk and then the factory can be thrown away. This way, we don't have large unnecessary objects lying around that are only useful at initialization time.
the readable sources. This allows objects that mix in only a subset of Readable interfaces to have type safety when trying to parse multiple sources. This allows the programmer to use the type system instead of needing to deal with cases that shouldn't exists. For instance, imagine implementing just NonFileReadable. Then, we shouldn't have to test for cases where the readable source refers to a File. The type hierarchy of ReadableSource allows this.
the output type of the objects produced by consuming the Readables.