The most widely-known workaround for defining default arguments for methods and constructors in Java uses method overloading, though varargs, null values, the builder pattern, and even maps have been used as well. Here we propose a new approach based on functional constructs.
August 22, 2016
by Federico Peralta Schaffner
·
53,731 Views
·
20 Likes