Commit 831c8c5c authored by zhanghuiren's avatar zhanghuiren

revert stub

parent 977f1e1d
......@@ -26,6 +26,17 @@ import (
// Integer represents a integer value.
type Integer struct {
big.Int
// used in hessian encoding/decoding
// You Should not use it in go
Signum int32
Mag []int
// Deprecated: compatible with java8 serialize
FirstNonzeroIntNum int
LowestSetBit int
BitLength int
BitCount int
}
func (Integer) JavaClassName() string {
......@@ -79,27 +90,3 @@ func (i *Integer) GetSignAndMag() (signum int32, mag []int) {
return
}
func (i *Integer) GetIntegerStub() (stub *IntegerStub) {
stub = new(IntegerStub)
stub.Signum, stub.Mag = i.GetSignAndMag()
return
}
func (i *Integer) SetIntegerStub(stub *IntegerStub) {
i.FromSignAndMag(stub.Signum, stub.Mag)
return
}
// IntegerStub is used for hessian encoding and decoding
// You Should not use it in go
type IntegerStub struct {
Signum int32
Mag []int
// Deprecated: compatible with java8 serialize
FirstNonzeroIntNum int
LowestSetBit int
BitLength int
BitCount int
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment