Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.walidatorpnr.pesel;
- import lombok.Data;
- import org.springframework.stereotype.Component;
- import com.google.common.collect.Lists;
- import javax.validation.constraints.Digits;
- import javax.validation.constraints.NotEmpty;
- import javax.validation.constraints.NotNull;
- import javax.validation.constraints.PositiveOrZero;
- import java.util.List;
- @Data
- @Component
- public class Pesel {
- private List<Integer> numbersList;
- private int[] weights;
- private String result;
- private int control_number;
- private String serial_number;
- private String sex;
- private int year;
- private int month;
- private int day;
- private String birthday;
- public Pesel()
- {
- numbersList = Lists.newArrayList(0,0,0,0,0,0,0,0,0,0,0);
- weights = new int[]{1, 3, 7, 9, 1, 3, 7, 9, 1, 3};
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement