@return the single integer that this NestedInteger holds, if it holds a single integer Return None if this NestedInteger holds a nested list
(self)
| 177 | return True |
| 178 | |
| 179 | def getInteger(self) -> int: |
| 180 | """ |
| 181 | @return the single integer that this NestedInteger holds, if it holds a single integer |
| 182 | Return None if this NestedInteger holds a nested list |
| 183 | """ |
| 184 | if (isList(self.ni)): |
| 185 | return None |
| 186 | return self.ni |
| 187 | |
| 188 | def getList(self): |
| 189 | """ |