??? ? ? ?
/**
* 计算hash值
* @param rule 数据对象
* @return
*/
public static byte[] hashByte(ChargeRule rule) {
int hashCode = rule.hashCode()%256;
ByteBuffer buffer = ByteBuffer.allocate(2);
buffer.putShort((short) hashCode );
byte[] r=buffer.array();
return r;
}