|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.golibri.countries.be.socialsecurity.SocialSecurityNumber
Number used by the social security to identify a single person The number consists out of the following elements
| Field Summary | |
static org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat |
DASH_LONG
|
static org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat |
DASH_SHORT
|
static org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat |
PLAIN
|
static org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat |
SPACE_LONG
|
static org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat |
SPACE_SHORT
|
| Constructor Summary | |
SocialSecurityNumber(long value)
Default constructor |
|
SocialSecurityNumber(java.lang.String value)
Default constructor |
|
SocialSecurityNumber(java.lang.String value,
org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat format)
Default constructor |
|
| Method Summary | |
boolean |
equals(java.lang.Object object)
|
long |
getValue()
|
int |
hashCode()
|
static boolean |
isValid(long value)
Check if the value is a valid social security number To be valid the number needs to meet the following conditions not negative smaller than 9999999999 born before 2000 : check must equal 97 - (base modulo 97) born after 2000 : same check but a 2 is added in front of the base |
java.lang.String |
toString()
|
java.lang.String |
toString(org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat format)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat PLAIN
public static final org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat SPACE_SHORT
public static final org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat SPACE_LONG
public static final org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat DASH_SHORT
public static final org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat DASH_LONG
| Constructor Detail |
public SocialSecurityNumber(long value)
value - Value of the social security number
java.lang.IllegalArgumentException - When the number is not conform the rulespublic SocialSecurityNumber(java.lang.String value)
value - Value of the social security number
java.lang.IllegalArgumentException - When the number is not conform the rules
public SocialSecurityNumber(java.lang.String value,
org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat format)
value - Value of the social security number
java.lang.IllegalArgumentException - When the number is not conform the rules| Method Detail |
public long getValue()
public java.lang.String toString()
Object.toString()public java.lang.String toString(org.golibri.countries.be.socialsecurity.SocialSecurityNumberFormat format)
format - to use
public boolean equals(java.lang.Object object)
Object.equals(java.lang.Object)public int hashCode()
Object.hashCode()public static boolean isValid(long value)
value - The value to check.
|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||