📄 uniqueaggregatinghashtable.java
字号:
package fri.util.collections;import java.util.List;/** A hashtable that holds a list of unique values instead of a single value for one key. @author Fritz Ritzberger*/public class UniqueAggregatingHashtable extends AggregatingHashtable{ public UniqueAggregatingHashtable() { super(); } public UniqueAggregatingHashtable(int initialCapacity) { super(initialCapacity); } protected boolean shouldAdd(List list, Object value) { return list != null ? list.indexOf(value) < 0 : true; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -