Class NestedInteger

java.lang.Object
com_github_leetcode.NestedInteger

public class NestedInteger extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    NestedInteger(java.lang.Integer integer)
     
    NestedInteger(java.util.List<NestedInteger> list)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(NestedInteger nestedInteger)
     
    java.lang.Integer
     
    java.util.List<NestedInteger>
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NestedInteger

      public NestedInteger()
    • NestedInteger

      public NestedInteger(java.util.List<NestedInteger> list)
    • NestedInteger

      public NestedInteger(java.lang.Integer integer)
  • Method Details

    • isInteger

      public boolean isInteger()
    • getInteger

      public java.lang.Integer getInteger()
    • getList

      public java.util.List<NestedInteger> getList()
    • add

      public void add(NestedInteger nestedInteger)