public class FiscalCodeCalculator
extends java.lang.Object
| Constructor and Description |
|---|
FiscalCodeCalculator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
calculateFC(java.lang.String name,
java.lang.String surname,
char sex,
java.util.Date birth,
City placeOfBirth)
This method actually calculates an Italian fiscal code starting from the initial and necessary parameters.
|
java.lang.String |
calculateFC(java.lang.String name,
java.lang.String surname,
char sex,
java.util.Date birth,
java.lang.String placeOfBirth)
This method calculates an Italian fiscal code starting from the initial and necessary parameters.
|
static java.lang.Object[] |
reverseFC(java.lang.String fc)
This method tries to reverse the fiscal code.
|
public java.lang.String calculateFC(java.lang.String name,
java.lang.String surname,
char sex,
java.util.Date birth,
java.lang.String placeOfBirth)
throws NotSuchCityException
name - The name of the person you want to calculate the fiscal code.surname - The surname of the person you want to calculate the fiscal code.sex - A char indicating the sex of the person you want to calculate the fiscal code.birth - A Date object indicating the date of birth of the person you want to calculate the fiscal code.placeOfBirth - A String object indicating the place of birth of the person you want to calculate the fiscal code.NotSuchCityExceptionpublic java.lang.String calculateFC(java.lang.String name,
java.lang.String surname,
char sex,
java.util.Date birth,
City placeOfBirth)
name - The name of the person you want to calculate the fiscal code.surname - The surname of the person you want to calculate the fiscal code.sex - A char indicating the sex of the person you want to calculate the fiscal code.birth - A Date object indicating the date of birth of the person you want to calculate the fiscal code.placeOfBirth - A City object indicating the place of birth of the person you want to calculate the fiscal code.public static java.lang.Object[] reverseFC(java.lang.String fc)
fc - An Italian fiscal code.