modify toml4j fork to automatically add new fields without overwriting previous ones and setup motd

This commit is contained in:
Taah
2022-05-04 05:18:07 -07:00
parent 6756f2db76
commit b072e49d85
45 changed files with 3708 additions and 0 deletions

View File

@ -0,0 +1,21 @@
package dev.plex.toml;
import java.util.concurrent.atomic.AtomicInteger;
interface ValueReader {
/**
* @param s must already have been trimmed
*/
boolean canRead(String s);
/**
* Partial validation. Stops after type terminator, rather than at EOI.
*
* @param s must already have been validated by {@link #canRead(String)}
* @param index where to start in s
* @param line current line number, used for error reporting
* @return a value or a {@link Results.Errors}
*/
Object read(String s, AtomicInteger index, Context context);
}