* Copy struct (shallow copy) * @this {!Balance} * @param {!Balance} other Other struct * @returns {!Balance} This struct
(other)
| 2049 | * @returns {!Balance} This struct |
| 2050 | */ |
| 2051 | copy (other) { |
| 2052 | super.copy(other) |
| 2053 | if (other.locked != null) { |
| 2054 | this.locked = other.locked |
| 2055 | } else { |
| 2056 | this.locked = undefined |
| 2057 | } |
| 2058 | return this |
| 2059 | } |
| 2060 | |
| 2061 | /** |
| 2062 | * Clone struct (deep clone) |