Skip to content
Advertisement

Java collection like c# KeyedColllection

Is there a Java collection that has the same behavior as the c# abstract KeyedCollection class (that is items can be retrieved by both key and index)? I have looked around but can’t find anything similar.

Thanks, Nick

Advertisement

Answer

I think you can develop Your own class by extending a HashMap

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement