JEP 186: Collection Literals

Remi Forax forax at
Fri Jan 31 01:02:26 PST 2014

On 01/31/2014 09:59 AM, Jochen Theodorou wrote:
> Am 31.01.2014 09:43, schrieb Remi Forax:
> [...]
>> If one day the JDK has persistent collections (and I hope it will),
>> there will be not interface to abstract them.
>> (you can still ask all implementations in the javadoc of the interface
>> to super swear that they are immutable but it's a weak contract).
> But the same goes for an abstract base class. So those persistent 
> collections would always have to have only the concrete class and most 
> probably no super class besides Object.
> Supporting different implementations then becomes difficult.
> bye Jochen

if the abstract class is public, yes, but you can make it non public,
like by example the abstract class between StringBuilder and StringBuffer.


More information about the lambda-dev mailing list