mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
package cn.hutool.core.codec;
|
package cn.hutool.core.codec;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 128位数字表示,分高位和低位
|
* 128位数字表示,分高位和低位
|
||||||
*
|
*
|
||||||
@@ -99,4 +101,21 @@ public class Number128 extends Number {
|
|||||||
public double doubleValue() {
|
public double doubleValue() {
|
||||||
return longValue();
|
return longValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(final Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o instanceof Number128) {
|
||||||
|
final Number128 number128 = (Number128) o;
|
||||||
|
return lowValue == number128.lowValue && highValue == number128.highValue;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(lowValue, highValue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user