Java implementation of the nrdy
human-readable serialization format.
We do what we must because we can, for the good of all of us, except the ones who are dead.
- GLaDOS (Portal) (Portal is a trademark of Valve Corporation)
- Easily convert objects to human-readable strings and vice-versa with minimal performance impact
// Create Nrdy instance
Nrdy nrdy = new Nrdy();
// Some object to convert
TestObject testObject = new TestObject();
testObject.fillData();
// Convert object to Nrdy string
String nrdyString = nrdy.convertObjectToNrdyString(testObject);
// Convert Nrdy string back to object
TestObject testObject2 = nrdy.convertNrdyStringToObject(nrdyString, TestObject.class);
// Profit!
This is some string;42;442;true;3.14;This is a nested string;SOME_OTHER_ENUM_VALUE;
- Java >= 8
repositories {
mavenCentral()
}
dependencies {
implementation 'dev.mayuna:nrdy-loader:0.0.1'
}
<dependency>
<groupId>dev.mayuna</groupId>
<artifactId>nrdy-loader</artifactId>
<version>0.0.1</version>
</dependency>
You can find the latest version here.
Important
Currently not supported types:
- Arrays
- Collections
- Maps