那
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
long temp;
temp = Double.doubleToLongBits(close);
result = prime * result + (int) (temp ^ (temp >>> 32));
CandleData里的这个方法就是用来转换的啊。
public void fromBytes(byte[] bytes, int off) {
time = getLong(bytes, off);
open = getDouble(bytes, off + 1 * 8);
close = getDouble(bytes, off + 2 * 8);
low = getDouble(bytes, off + 3 * 8);
high = getDouble(bytes, off + 4 * 8);
vol = getDouble(bytes, off + 5 * 8);
}
运算符和函数是什么意思,我想您google一下就会很容易找到了。