Skip to content
Anders Båtstrand edited this page Apr 10, 2018 · 4 revisions

This project provides a simple api to manage National Id Numbers. We found out that the use of a functional approach to tackle the problem would result in a much lighter api, therefor we decided to use java 8.

Use cases are shown in the different tests. Take for example: FinnishIdNumberTest.java

At the moment is provided implementation for all 4 Scandinavian countries:

  • Denmark
  • Finland
  • Norway
  • Sweden

For each of these countries is provided:

  • validation
  • gender calculation
  • birthday calculation
  • age calculation
  • handling of side cases (Dnummer in Norway, samordningsnumber in Sweden etc.)
Clone this wiki locally