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
ConstructorsConstructorDescriptionTomlDocumentImpl(@NotNull io.github.wasabithumb.jtoml.value.table.TomlTable backing) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()@NotNull io.github.wasabithumb.jtoml.comment.Commentscomments()booleancontains(@NotNull io.github.wasabithumb.jtoml.key.TomlKey key) longintflags()@NotNull io.github.wasabithumb.jtoml.document.TomlDocumentflags(int flags) @Nullable io.github.wasabithumb.jtoml.value.TomlValueget(@NotNull io.github.wasabithumb.jtoml.key.TomlKey key) booleanisEmpty()boolean@NotNull @Unmodifiable Set<io.github.wasabithumb.jtoml.key.TomlKey>keys(boolean deep) @Nullable io.github.wasabithumb.jtoml.value.TomlValueput(@NotNull io.github.wasabithumb.jtoml.key.TomlKey key, @NotNull io.github.wasabithumb.jtoml.value.TomlValue value) @Nullable io.github.wasabithumb.jtoml.value.TomlValueremove(@NotNull io.github.wasabithumb.jtoml.key.TomlKey key) voidsetOrderMarked(boolean orderMarked) intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, toMapMethods 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:
creationTimein interfaceio.github.wasabithumb.jtoml.value.TomlValue
-
flags
public int flags()- Specified by:
flagsin interfaceio.github.wasabithumb.jtoml.value.TomlValue
-
flags
@NotNull public @NotNull io.github.wasabithumb.jtoml.document.TomlDocument flags(int flags) - Specified by:
flagsin interfaceio.github.wasabithumb.jtoml.value.TomlValue
-
comments
@NotNull public @NotNull io.github.wasabithumb.jtoml.comment.Comments comments()- Specified by:
commentsin interfaceio.github.wasabithumb.jtoml.value.TomlValue
-
size
public int size()- Specified by:
sizein interfaceio.github.wasabithumb.jtoml.value.table.TomlTable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceio.github.wasabithumb.jtoml.value.table.TomlTable
-
clear
public void clear()- Specified by:
clearin interfaceio.github.wasabithumb.jtoml.value.table.TomlTable
-
keys
@NotNull public @NotNull @Unmodifiable Set<io.github.wasabithumb.jtoml.key.TomlKey> keys(boolean deep) - Specified by:
keysin interfaceio.github.wasabithumb.jtoml.value.table.TomlTable
-
contains
public boolean contains(@NotNull @NotNull io.github.wasabithumb.jtoml.key.TomlKey key) - Specified by:
containsin interfaceio.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:
getin interfaceio.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:
putin interfaceio.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:
removein interfaceio.github.wasabithumb.jtoml.value.table.TomlTable
-