Class TomlDocumentImpl

java.lang.Object
io.github.wasabithumb.jtoml.document.TomlDocumentImpl
All Implemented Interfaces:
io.github.wasabithumb.jtoml.document.TomlDocument, io.github.wasabithumb.jtoml.value.table.TomlTable, io.github.wasabithumb.jtoml.value.TomlValue

@Internal public final class TomlDocumentImpl extends Object implements io.github.wasabithumb.jtoml.document.TomlDocument
  • Constructor Summary

    Constructors
    Constructor
    Description
    TomlDocumentImpl(@NotNull io.github.wasabithumb.jtoml.value.table.TomlTable backing)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    @NotNull io.github.wasabithumb.jtoml.comment.Comments
     
    boolean
    contains(@NotNull io.github.wasabithumb.jtoml.key.TomlKey key)
     
    long
     
    int
     
    @NotNull io.github.wasabithumb.jtoml.document.TomlDocument
    flags(int flags)
     
    @Nullable io.github.wasabithumb.jtoml.value.TomlValue
    get(@NotNull io.github.wasabithumb.jtoml.key.TomlKey key)
     
    boolean
     
    boolean
     
    @NotNull @Unmodifiable Set<io.github.wasabithumb.jtoml.key.TomlKey>
    keys(boolean deep)
     
    @Nullable io.github.wasabithumb.jtoml.value.TomlValue
    put(@NotNull io.github.wasabithumb.jtoml.key.TomlKey key, @NotNull io.github.wasabithumb.jtoml.value.TomlValue value)
     
    @Nullable io.github.wasabithumb.jtoml.value.TomlValue
    remove(@NotNull io.github.wasabithumb.jtoml.key.TomlKey key)
     
    void
    setOrderMarked(boolean orderMarked)
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.github.wasabithumb.jtoml.value.table.TomlTable

    contains, get, keys, put, put, put, put, put, put, put, put, put, put, put, put, put, remove, toMap

    Methods inherited from interface io.github.wasabithumb.jtoml.value.TomlValue

    asArray, asPrimitive, asTable, isArray, isPrimitive, isTable
  • Constructor Details

    • TomlDocumentImpl

      public TomlDocumentImpl(@NotNull @NotNull io.github.wasabithumb.jtoml.value.table.TomlTable backing)
  • Method Details

    • isOrderMarked

      public boolean isOrderMarked()
    • setOrderMarked

      public void setOrderMarked(boolean orderMarked)
    • creationTime

      public long creationTime()
      Specified by:
      creationTime in interface io.github.wasabithumb.jtoml.value.TomlValue
    • flags

      public int flags()
      Specified by:
      flags in interface io.github.wasabithumb.jtoml.value.TomlValue
    • flags

      @NotNull public @NotNull io.github.wasabithumb.jtoml.document.TomlDocument flags(int flags)
      Specified by:
      flags in interface io.github.wasabithumb.jtoml.value.TomlValue
    • comments

      @NotNull public @NotNull io.github.wasabithumb.jtoml.comment.Comments comments()
      Specified by:
      comments in interface io.github.wasabithumb.jtoml.value.TomlValue
    • size

      public int size()
      Specified by:
      size in interface io.github.wasabithumb.jtoml.value.table.TomlTable
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface io.github.wasabithumb.jtoml.value.table.TomlTable
    • clear

      public void clear()
      Specified by:
      clear in interface io.github.wasabithumb.jtoml.value.table.TomlTable
    • keys

      @NotNull public @NotNull @Unmodifiable Set<io.github.wasabithumb.jtoml.key.TomlKey> keys(boolean deep)
      Specified by:
      keys in interface io.github.wasabithumb.jtoml.value.table.TomlTable
    • contains

      public boolean contains(@NotNull @NotNull io.github.wasabithumb.jtoml.key.TomlKey key)
      Specified by:
      contains in interface io.github.wasabithumb.jtoml.value.table.TomlTable
    • get

      @Nullable public @Nullable io.github.wasabithumb.jtoml.value.TomlValue get(@NotNull @NotNull io.github.wasabithumb.jtoml.key.TomlKey key)
      Specified by:
      get in interface io.github.wasabithumb.jtoml.value.table.TomlTable
    • put

      @Nullable public @Nullable io.github.wasabithumb.jtoml.value.TomlValue put(@NotNull @NotNull io.github.wasabithumb.jtoml.key.TomlKey key, @NotNull @NotNull io.github.wasabithumb.jtoml.value.TomlValue value)
      Specified by:
      put in interface io.github.wasabithumb.jtoml.value.table.TomlTable
    • remove

      @Nullable public @Nullable io.github.wasabithumb.jtoml.value.TomlValue remove(@NotNull @NotNull io.github.wasabithumb.jtoml.key.TomlKey key)
      Specified by:
      remove in interface io.github.wasabithumb.jtoml.value.table.TomlTable