Class Container.Table

java.lang.Object
com.moandjiezana.toml.Container
com.moandjiezana.toml.Container.Table
Enclosing class:
Container

static class Container.Table extends Container
  • Field Details

    • values

      private final Map<String,Object> values
    • name

      final String name
    • implicit

      final boolean implicit
  • Constructor Details

    • Table

      Table()
    • Table

      public Table(String name)
    • Table

      public Table(String tableName, boolean implicit)
  • Method Details

    • accepts

      boolean accepts(String key)
      Specified by:
      accepts in class Container
    • put

      void put(String key, Object value)
      Specified by:
      put in class Container
    • get

      Object get(String key)
      Specified by:
      get in class Container
    • isImplicit

      boolean isImplicit()
      Specified by:
      isImplicit in class Container
    • consume

      Map<String,Object> consume()
      This modifies the Table's internal data structure, such that it is no longer usable. Therefore, this method must only be called when all data has been gathered.
      Returns:
      A Map-and-List-based of the TOML data
    • toString

      public String toString()
      Overrides:
      toString in class Object