https://github.com/giosil/wcollections
A convenience library for manage collections.
https://github.com/giosil/wcollections
convenience-library java-collections java-library
Last synced: 4 months ago
JSON representation
A convenience library for manage collections.
- Host: GitHub
- URL: https://github.com/giosil/wcollections
- Owner: giosil
- License: apache-2.0
- Created: 2019-11-15T14:39:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-04T07:32:50.000Z (almost 2 years ago)
- Last Synced: 2024-12-27T11:44:32.171Z (about 1 year ago)
- Topics: convenience-library, java-collections, java-library
- Language: Java
- Homepage:
- Size: 420 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wrapped Collections


A convenience library for collections management.
## Examples
```java
// 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 mapPerson = WUtil.toMapObject(person, false);
```
## Build
- `git clone https://github.com/giosil/wcollections.git`
- `mvn clean install`
## Revert and clean
- `git reset --hard` to discarde any changes not committed to tracked files in the working tree
- `git clean -fxd` to delete untracked file recursively (f) and directories (d) also in .gitignore (x)
## Build on Jenkins

## Contributors
* [Giorgio Silvestris](https://github.com/giosil)