mirror of
https://github.com/plexusorg/toml4j.git
synced 2025-02-11 19:50:29 +00:00
Updated change log and readme
This commit is contained in:
parent
5a9dd3c58c
commit
7b7906d0ed
2 changed files with 14 additions and 4 deletions
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -1,9 +1,19 @@
|
||||||
# toml4j Changelog
|
# toml4j Changelog
|
||||||
|
|
||||||
## NEXT
|
## Unreleased
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* Toml#getList(String) replaced Toml#getList(String, Class)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
* Fixed short-form Unicode escapes
|
* Fixed short-form Unicode escapes
|
||||||
* Fixed exponent handling
|
* Fixed exponent handling
|
||||||
* Dropped dependency on Parboiled
|
|
||||||
|
### Misc.
|
||||||
|
|
||||||
|
* Dropped dependency on Parboiled and its significant transitive dependencies
|
||||||
* Updated Gson to 2.3.1
|
* Updated Gson to 2.3.1
|
||||||
|
|
||||||
## 0.3.1 / 2014-12-16
|
## 0.3.1 / 2014-12-16
|
||||||
|
|
|
@ -104,7 +104,7 @@ Use the getters to retrieve the data:
|
||||||
* `getBoolean(String)`
|
* `getBoolean(String)`
|
||||||
* `getLong(String)`
|
* `getLong(String)`
|
||||||
* `getDouble(String)`
|
* `getDouble(String)`
|
||||||
* `getList(String, Class<T>)`
|
* `getList(String)`
|
||||||
* `getTable(String)` returns a new Toml instance containing only the keys in that table.
|
* `getTable(String)` returns a new Toml instance containing only the keys in that table.
|
||||||
* `getTables(String)`, for table arrays, returns `List<Toml>`.
|
* `getTables(String)`, for table arrays, returns `List<Toml>`.
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ Toml toml = new Toml().parse(getTomlFile());
|
||||||
String title = toml.getString("title");
|
String title = toml.getString("title");
|
||||||
String subTitle = toml.getString("\"sub title\"");
|
String subTitle = toml.getString("\"sub title\"");
|
||||||
Boolean enabled = toml.getBoolean("database.enabled");
|
Boolean enabled = toml.getBoolean("database.enabled");
|
||||||
List<Long> ports = toml.getList("database.ports", Long.class);
|
List<Long> ports = toml.getList("database.ports");
|
||||||
String password = toml.getString("database.credentials.password");
|
String password = toml.getString("database.credentials.password");
|
||||||
|
|
||||||
Toml servers = toml.getTable("servers");
|
Toml servers = toml.getTable("servers");
|
||||||
|
|
Loading…
Reference in a new issue