Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.54 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.54 KB

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

<dependency>
    <groupId>com.github.hoantran-it.library</groupId>
    <artifactId>utility-library</artifactId>
    <version>1.0</version>
</dependency>

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<Developer> 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 - Dependency Management

Versioning

For the versions available, see the maven repository or github release

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the Apache License - see the LICENSE.md file for details