(value any)
| 32 | } |
| 33 | |
| 34 | func NewNestedInteger(value any) *NestedInteger { |
| 35 | var isInt bool |
| 36 | if _, ok := value.(int); ok { |
| 37 | isInt = true |
| 38 | } |
| 39 | return &NestedInteger{ |
| 40 | value: value, |
| 41 | isInt: isInt, |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func (this NestedInteger) IsInteger() bool { |
| 46 | return this.isInt |