public abstract class LWBST<E> extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected Comparator<? super E> |
comparator |
protected E[] |
leaf |
protected int[] |
tree |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract Consumer<E> |
getOffer(int type) |
protected abstract int[] |
getTree(int type) |
static <E> LWBST<E> |
of(Comparator<? super E> comparator,
E[] leaf) |
static <E> LWBST<E> |
of(Comparator<? super E> comparator,
E[] leaf,
int type) |
void |
sort(Supplier<E>[] sources,
Consumer<E> consumer) |
protected final Comparator<? super E> comparator
protected final E[] leaf
protected final int[] tree
protected abstract int[] getTree(int type)
public static <E> LWBST<E> of(Comparator<? super E> comparator, E[] leaf, int type)
public static <E> LWBST<E> of(Comparator<? super E> comparator, E[] leaf)
Copyright © 2022. All rights reserved.