T - 对象类型public class WeightObj<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected T |
obj
对象
|
protected int |
weight
权重
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
T |
getObj()
获取对象
|
int |
getWeight()
获取权重
|
int |
hashCode() |
void |
setObj(T obj)
设置对象
|
protected T obj
protected int weight
public WeightObj(T obj, int weight)
obj - 对象weight - 权重Copyright © 2025. All rights reserved.