An open API service indexing awesome lists of open source software.

https://github.com/rapter1990/dataorbpayroll

Java Stream Code Task for DataOrb
https://github.com/rapter1990/dataorbpayroll

collections file java java-streams

Last synced: 6 months ago
JSON representation

Java Stream Code Task for DataOrb

Awesome Lists containing this project

README

          

# Java Stream Code Task For DataOrb

Main Information

## Description


  • It is an example of Payroll Processing System

  • It accepts the employees data from the client in either plain text format (.txt) manage the employee life cycle starting from date of onboarding to date of exit

  • How does the example look like

    • All code written is based on Java

    • Reading values from txt file and store all them into collection named Map

    • Get the result with respect to the different kinds of operations like grouping by one or multi fields, mapping object to dto(data transfer object), sorting by one field and other processes by the usage of java streams



### Description of the Methods


Method
Description


getTotalNumberOfEmployeesInOrganization
Show the total number of employees in the organization


getMonthWiseFollowingDetails
Show the total number of employees who joined the organization and exited from it/td>


getMonthlySalaryReport
Show the salary report accoring to month containing Month, total Salary and lastly total Employees


getEmployeeWiseFinancialReport
Show the employee financial report containing employee id, employee name, employee surname and lastly total amount paid


getMonthlyAmountReleasedReport
Show monthly amount relased report containing month, total amount and lastly total employees


getYearlyFinancialReport
Show yearly financial report containing event, employee id, event date and lastly event value

### Usage of Technology
* Java 19

### 🔨 Run the App

1 ) Clone project from github
```
File
-> New
-> Project from Version Control
-> Paste the git url and Click Clone
```
2 ) Click "Run"

### Resources which I've used to build the example during the project

1) 10 Examples of Stream API in Java 8 - count + filter + map + distinct + collect() Examples
https://www.java67.com/2014/04/java-8-stream-examples-and-tutorial.html

2) Java 8 Stream - Java Stream
https://www.digitalocean.com/community/tutorials/java-8-stream

3) Java 8 Tutorials
https://mkyong.com/tutorials/java-8-tutorials/

4) Java 8 Tutorials
https://mkyong.com/tutorials/java-8-tutorials/

5) Java Stream Group By
https://www.davidvlijmincx.com/posts/java_stream_group_by/

6) Collectors teeing() method examples
https://howtodoinjava.com/java12/collectors-teeing-example/

7) Java - Using Collectors.teeing() Examples
https://www.woolha.com/tutorials/java-using-collectors-teeing-examples

8) Teeing, a hidden gem in the Java API
https://blog.frankel.ch/teeing-java-api/

9) Java 8 Read File With try-with-resources
https://nirajsonawane.github.io/2018/05/24/Java-8-Read-File-With-try-with-resources/

10) Formatting with Java DateTimeFormatter
https://howtodoinjava.com/java/date-time/java8-datetimeformatter-example/