mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-06 01:26:42 +00:00
modify toml4j fork to automatically add new fields without overwriting previous ones and setup motd
This commit is contained in:
30
proxy/src/main/java/dev/plex/toml/IndentationPolicy.java
Normal file
30
proxy/src/main/java/dev/plex/toml/IndentationPolicy.java
Normal file
@ -0,0 +1,30 @@
|
||||
package dev.plex.toml;
|
||||
|
||||
/**
|
||||
* Controls how a {@link TomlWriter} indents tables and key/value pairs.
|
||||
*
|
||||
* The default policy is to not indent.
|
||||
*/
|
||||
public class IndentationPolicy {
|
||||
private final int tableIndent;
|
||||
private final int keyValueIndent;
|
||||
private final int arrayDelimiterPadding;
|
||||
|
||||
IndentationPolicy(int keyIndentation, int tableIndentation, int arrayDelimiterPadding) {
|
||||
this.keyValueIndent = keyIndentation;
|
||||
this.tableIndent = tableIndentation;
|
||||
this.arrayDelimiterPadding = arrayDelimiterPadding;
|
||||
}
|
||||
|
||||
int getTableIndent() {
|
||||
return tableIndent;
|
||||
}
|
||||
|
||||
int getKeyValueIndent() {
|
||||
return keyValueIndent;
|
||||
}
|
||||
|
||||
int getArrayDelimiterPadding() {
|
||||
return arrayDelimiterPadding;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user