https://github.com/hoantran-it/utility-library
Provide utility class for supporting software development with Java
https://github.com/hoantran-it/utility-library
comparison date-time datetime gmt java json sql utc validation
Last synced: 8 days ago
JSON representation
Provide utility class for supporting software development with Java
- Host: GitHub
- URL: https://github.com/hoantran-it/utility-library
- Owner: hoantran-it
- License: apache-2.0
- Created: 2016-05-22T04:57:24.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T20:47:20.000Z (about 4 years ago)
- Last Synced: 2025-07-14T22:56:16.141Z (11 months ago)
- Topics: comparison, date-time, datetime, gmt, java, json, sql, utc, validation
- Language: Java
- Size: 101 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Utility library
Utility library for Java application
## Getting Started
Fork source code to get more detail or just adding maven dependency for usage.
### Installing
Add below dependency to your maven project
```
com.github.hoantran-it.library
utility-library
1.0
```
### Sample use caces
Call api to sort a list object base on property field
```
import com.github.hoantran.lib.utility.comparison.CustomComparator;
import com.github.hoantran.lib.utility.sampledata.Developer;
import com.github.hoantran.lib.utility.sampledata.SampleDataCreation;
```
```
List devList = SampleDataCreation.createDeveloperList();
Object[] propertyId = new Object[] { "name", "experienceYears" };
boolean[] ascending = new boolean[] { false, false };
Collections.sort(devList, new CustomComparator(propertyId, ascending));
```
## Built With
* [Maven](https://maven.apache.org/) - Dependency Management
## Versioning
For the versions available, see the [maven repository](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22utility-library%22) or [github release](https://github.com/hoantran-it/utility-library/releases)
## Authors
* **Hoan Tran** - *Initial work* - [hoantran-it](https://github.com/hoantran-it)
See also the list of [contributors](https://github.com/hoantran-it/utility-library/graphs/contributors) who participated in this project.
## License
This project is licensed under the Apache License - see the [LICENSE.md](LICENSE.md) file for details