hoantran-it / utility-library

Provide utility class for supporting software development with Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Provide utility class for supporting software development with Java

License:Apache License 2.0


Languages

Language:Java 100.0%