Skip to content

JustDrven/object-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ObjectWrapper

How to use it:

// Create instance of ObjectWrapper
ObjectWrapper objectWrapper = new ObjectWrapper(File);

// Add data to map
objectWrapper.putData(new DataString("test", "this is test"));
objectWrapper.putData(new DataInt("testId", 10));

// Save all data to file
objectWrapper.save();

// Returns data by id
DataString test = objectWrapper.readData("test");
DataInt testId = objectWrapper.readData("testId");

// Returns data type
String testToString = test.get();
int testIdToInt = testId.get();

Types of data:

  • DataObject
  • DataString
  • DataBoolean
  • DataInt
  • DataDouble
  • DataFloat
  • DataByte
  • DataClass
  • and more...

Benefits:

  • It's easy to use
  • It's legible (In my opinion)
  • The file you are writing data to is unreadable

By JustDrven

About

Easy library to objects save and read data

Topics

Resources

Stars

Watchers

Forks

Languages