[英]Java analogue of C# Dictionary with IEqualityComparer(TKey)
Is there a Map-based class in Java (in lang, apache commons or somewhere else) which has possibility to provide custom key equality comparer? Java中是否存在基于Map的类(在lang,apache commons或其他地方),它有可能提供自定义键相等比较器吗?
In C# it is possible with Dictionary class http://msdn.microsoft.com/en-us/library/ms132072.aspx . 在C#中,可以使用Dictionary类http://msdn.microsoft.com/en-us/library/ms132072.aspx 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.