Hi all,
some long time ago we decided to stick to Java 7 and to drop the
specialized Java 8 version of our API. The most important feature of
Java 8 we used in our API was Optional. Optional has some advantages but
may be it is not the most import feature of Java 8 ;-)
I would to add support for lambdas in our API to Tamaya without dropping
the support of Java 7 or the requirement to use Java 8.
So adding an own interface Provider<T> with only on method T
get()<http://dict.leo.org/ende/index_de.html#/search=provider&searchLoc=0&resultOrder=basic&multiwordShowSingle=on>
would allow us to overwrite for example
String Configuration::getOrDefault(Stringkey, StringdefaultValue) with
String Configuration::getOrDefault(Provider<String>key,
Provider<String>defaultValue)
Users would be able to use Tamaya with lambdas and method references in Java 8.
WDYT?
--
N Oliver B. Fischer
A Schönhauser Allee 64, 10437 Berlin, Deutschland/Germany
P +49 30 44793251
M +49 178 7903538
E [email protected]
S oliver.b.fischer
J [email protected]
X http://xing.to/obf