Package us.bpsm.edn.protocols
This package provides the basis for implementing the printer.
See: Description
-
Interface Summary Interface Description Protocol<F> A Protocol is a thread-safe immutable mapping from classes to values of some typeF.Protocol.Builder<F> A single-use builder for Protocol. -
Class Summary Class Description Protocols Factories forProtocols
Package us.bpsm.edn.protocols Description
This package provides the basis for implementing the printer.
A protocol is a function (method) of which implementations can be provided for any number of types.
What this package provides is not quite a protocol, but
something a bit more general: a kind of Map which looks up values
by keys. The values can be of any type, but the keys must be of
type Class. The trick here is that lookup takes
inheritance into account such that we don't need to specify an
implementation for every concrete type we expect to encounter.
DMelt 3.0 © DataMelt by jWork.ORG