java.lang.Object
cn.wjybxx.base.collection.RefIndexedElement<E>
- 所有已实现的接口:
IndexedElement
- 作者:
- wjybxx date 2023/4/3
-
字段概要
从接口继承的字段 cn.wjybxx.base.collection.IndexedElement
INDEX_NOT_FOUNT -
方法概要
修饰符和类型方法说明intcollectionIndex(Object collection) 获取对象在集合中的索引voidcollectionIndex(Object collection, int index) 设置其在集合中的索引get()static <E> RefIndexedElement<E> of(E e) static <E> Comparator<RefIndexedElement<E>> wrapComparator(Comparator<? super E> comparator)
-
方法详细资料
-
of
-
get
-
collectionIndex
从接口复制的说明:IndexedElement获取对象在集合中的索引- 指定者:
collectionIndex在接口中IndexedElement- 参数:
collection- 考虑到一个元素可能在多个队列中,因此传入队列引用
-
collectionIndex
从接口复制的说明:IndexedElement设置其在集合中的索引- 指定者:
collectionIndex在接口中IndexedElement- 参数:
index- 如果是删除元素,则索引为-1
-
wrapComparator
-