类 SelfSortSet<E,R>
- java.lang.Object
-
- cc.shacocloud.mirage.utils.collection.SelfSortList<E>
-
- cc.shacocloud.mirage.utils.collection.SelfSortSet<E,R>
-
- 类型参数:
E- 泛型实例
- 所有已实现的接口:
Iterable<E>,Collection<E>,List<E>
public class SelfSortSet<E,R> extends SelfSortList<E>
自排序禁止重复集合,内部维护一个hash表来禁止重复,基于SelfSortList实现
-
-
字段概要
-
从类继承的字段 cc.shacocloud.mirage.utils.collection.SelfSortList
DEFAULT_CAPACITY
-
-
构造器概要
构造器 构造器 说明 SelfSortSet(int initialCapacity, Comparable<E> comparable, java.util.function.Function<E,R> repeatedConditionFunc)SelfSortSet(Comparable<E> comparable, java.util.function.Function<E,R> repeatedConditionFunc)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanadd(E e)booleanremove(Object o)-
从类继承的方法 cc.shacocloud.mirage.utils.collection.SelfSortList
add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, set, size, sort, subList, toArray, toArray, toString
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 java.util.Collection
parallelStream, removeIf, stream, toArray
-
从接口继承的方法 java.util.List
equals, hashCode, replaceAll, spliterator
-
-
-
-
构造器详细资料
-
SelfSortSet
public SelfSortSet(Comparable<E> comparable, java.util.function.Function<E,R> repeatedConditionFunc)
- 参数:
comparable- 获取当前对象排序所用值的函数repeatedConditionFunc- 重复条件函数,获取该对象的标识值,该用于唯一判断
-
SelfSortSet
public SelfSortSet(int initialCapacity, Comparable<E> comparable, java.util.function.Function<E,R> repeatedConditionFunc)
-
-
方法详细资料
-
add
public boolean add(E e)
- 指定者:
add在接口中Collection<E>- 指定者:
add在接口中List<E>- 覆盖:
add在类中SelfSortList<E>
-
remove
public boolean remove(Object o)
- 指定者:
remove在接口中Collection<E>- 指定者:
remove在接口中List<E>- 覆盖:
remove在类中SelfSortList<E>
-
-