WinterDev
WinterDev

Reputation: 358

How to access the linked list inside the LinkedHashMap?

LinkedHashMap is supposed to contain an insertion-order linked list. Is there any way to access that list? I can't find anything in the javadocs for it.

Upvotes: 2

Views: 566

Answers (2)

Grzegorz Piwowarek
Grzegorz Piwowarek

Reputation: 13793

No, those are implementation details and should never be exposed to the external world.

Upvotes: 2

Alejandro C.
Alejandro C.

Reputation: 3801

No it isn't, but depending on what you're trying to do, the iterator returned by iterator() may be sufficient.

Upvotes: 1

Related Questions