Random access in ArrayDeque

Paul Sandoz paul.sandoz at oracle.com
Mon Feb 10 14:26:57 UTC 2014


On Feb 10, 2014, at 3:11 PM, Jason Mehrens <jason_mehrens at hotmail.com> wrote:

>> Too bad there is no interface with only get(index), set(index, x),
>> and indexOf(x). Implementing only these would probably satisfy
>> all candidate usages.
> 
> With default methods can't we modify the RandomAccess marker interface with hostile implementations?
> 

I was pondering the same thing, but concluded to myself that the hostility was rather too hostile given that the interface is not a subtype of List.

Paul.



More information about the core-libs-dev mailing list