任何在Java中的有序集的实现? [英] Any implementation of Ordered Set in Java?

查看:98
本文介绍了任何在Java中的有序集的实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有人熟悉Objective-C,则有一个名为 <$作为设置的c $ c> NSOrderedSet ,其项可以作为 Array 的访问。

If anybody is familiar with Objective-C there is a collection called NSOrderedSet that acts as Set and its items can be accessed as an Array's ones.

在Java中有这样的东西吗?

Is there anything like this in Java?

我听说有一个集合 LinkedHashMap ,但我没有

I've heard there is a collection called LinkedHashMap, but I haven't found anything like it for a set.

推荐答案

查看 LinkedHashSet

这篇关于任何在Java中的有序集的实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆