@ NotNull public Candidate setDateOfBirth ( @ Nullable final Date dateOfBirth ) { if ( dateOfBirth == null ) { this . dateOfBirth = null ; return this ; } this . dateOfBirth = new Date ( dateOfBirth . getTime ( ) ) ; return this ; }
Set the date of birth of your candidate .