See: Description
| Interface | Description |
|---|---|
| Protocol<F> |
A Protocol is a thread-safe immutable mapping from classes to
values of some type
F. |
| Protocol.Builder<F> |
A single-use builder for Protocol.
|
| Class | Description |
|---|---|
| Protocols |
Factories for
Protocols |
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.
Copyright © 2019. All rights reserved.