Advertisement
Amakesh

Untitled

Mar 24th, 2022 (edited)
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.84 KB | None | 0 0
  1. package com.walidatorpnr.pesel;
  2.  
  3. import lombok.Data;
  4. import org.springframework.stereotype.Component;
  5. import com.google.common.collect.Lists;
  6. import javax.validation.constraints.Digits;
  7. import javax.validation.constraints.NotEmpty;
  8. import javax.validation.constraints.NotNull;
  9. import javax.validation.constraints.PositiveOrZero;
  10. import java.util.List;
  11.  
  12. @Data
  13. @Component
  14. public class Pesel {
  15.  
  16.     private List<Integer> numbersList;
  17.     private int[] weights;
  18.     private String result;
  19.     private int control_number;
  20.     private String serial_number;
  21.     private String sex;
  22.     private int year;
  23.     private int month;
  24.     private int day;
  25.     private String birthday;
  26.  
  27.     public Pesel()
  28.  
  29.     {
  30.      numbersList = Lists.newArrayList(0,0,0,0,0,0,0,0,0,0,0);
  31.      weights = new int[]{1, 3, 7, 9, 1, 3, 7, 9, 1, 3};
  32.     }
  33.  
  34. }
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement