Friday, 20 May 2016

random access



random access

ref. to how to access data. Random access is also called direct access, you can read and write anywhere in the random access; in the sequential access you have to read or write in a sequence.  it seems random access is more efficient access than sequential access.

In java, there is a pubic interface modifier, java.util.RandomAccess.
ArrayList is the one typically implement this interface;

It needs to consider the performance view implementing RandomAcess, or not.

ArrayList implements RandomAcess, but LinkedList implements not. How to compare them on accessing?

I think the random access in the linked-list is not efficient.


No comments:

Can Jackson Deserialize Java Time ZonedDateTime

Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...