A convenience library for collections management.
// Wrapped Map
WMap wmap = new WMap(mapOfValues);
int iValue = wmap.getInt(key, 0);
double dValue = wmap.getDouble(key, 3.14d);
String sValue = wmap.getString(key, "");
Date dtValue = wmap.getDate(key, null);
// Wrapped List
WList wlist = new WList(list);
int intVal = wlist.getInt(0);
// Wrapped Structure
WStruct wstruct = new WStruct(mapOfValues);
String name = wstruct.getString("person.name");
// Utils and Beans manipulation
Person person = WUtil.populateBean(Person.class, mapOfValues);
Map<String, Object> mapPerson = WUtil.toMapObject(person, false);
git clone https://github.com/giosil/wcollections.git
mvn clean install
git reset --hard
to discarde any changes not committed to tracked files in the working treegit clean -fxd
to delete untracked file recursively (f) and directories (d) also in .gitignore (x)