public class RankEntity<T> extends Object implements Comparable<RankEntity<T>>
| Modifier and Type | Field and Description |
|---|---|
int |
index
顺序(越小越前)
|
int |
priority
优先级(越大越优)
|
T |
target
目标
|
| Constructor and Description |
|---|
RankEntity(T t,
int i) |
RankEntity(T t,
int i,
int p) |
RankEntity(T t,
int i,
int p,
boolean pIsDesc) |
public final T target
public final int index
public final int priority
public RankEntity(T t, int i)
public RankEntity(T t, int i, int p)
public RankEntity(T t, int i, int p, boolean pIsDesc)
public int compareTo(RankEntity<T> o)
compareTo in interface Comparable<RankEntity<T>>Copyright © 2025. All rights reserved.