Internal implementation class.
Often the almost single purpose in life of an embedded class within
an interface was the evaluation of some final values. Albrecht Weinert's
"embedded evaluation class" pattern (first published 2001)
allows for evaluations at runtime of any complexity, that initialisers
for final values could never accomplish.
Another purpose here is allowing complicated implementations for interface
methods (default or static) as well as giving those non public arrays the
values of which could (in Java) otherwise not be made immutable.
In this sense this class is not for the user of the frame work, nor does
she or he need it's documentation.
Background: This (javaDoc) documentation is only visible because all
elements in an interface have to be public. This "enforced
publicity" mechanism also applies to embedded classes (which is a
pity). Otherwise class would have gotten package visibility (by the
author's will), thus hiding it's existence from reader's eyes.
©
Copyright 2021 Albrecht Weinert