Skip to content

Provide utility class for supporting software development with Java

License

Notifications You must be signed in to change notification settings

hoantran-it/utility-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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