Repository navigation
Expand file tree
/
Copy pathPerson.java
More file actions
131 lines (118 loc) · 2.95 KB
/
Copy pathPerson.java
File metadata and controls
131 lines (118 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/**
* @author Code Gods
*/
import java.util.UUID;
public class Person {
private UUID personID;
private String firstName;
private String lastName;
private String gender;
private String race;
private int age;
private double height;
private double weight;
private String phoneNumber;
private String address;
private String occupation;
/**
*
* @param personID unique person id
* @param firstName person first name
* @param lastName person last name
* @param gender person gender
* @param race person race
* @param age person age
* @param height person height
* @param weight person weight
* @param phoneNumber person phone number
* @param address person address
* @param occupation person occupation
*/
public Person(UUID personID, String firstName, String lastName, String gender, String race, int age, double height, double weight, String phoneNumber, String address, String occupation) {
this.personID = personID;
this.firstName = firstName;
this.lastName = lastName;
this.gender = gender;
this.race = race;
this.age = age;
this.height = height;
this.weight = weight;
this.phoneNumber = phoneNumber;
this.address = address;
this.occupation = occupation;
}
/**
* returning the person UUID
*/
public UUID getUUID() {
return personID;
}
/**
* returning the persons first name
*
*/
public String getFirstName() {
return firstName;
}
/**
* returning the persons last name
*/
public String getLastName() {
return lastName;
}
/**
* returning the persons gender
*/
public String getGender() {
return gender;
}
/**
* returning the persons race
*/
public String getRace() {
return race;
}
/**
* returning the persons age
*/
public int getAge() {
return age;
}
/**
* returning the persons height
*/
public double getHeight() {
return height;
}
/**
* returing the persons weight
*/
public double getWeight() {
return weight;
}
/**
* returning the persons phone number
*/
public String getPhoneNumber() {
return phoneNumber;
}
/**
* returning the persons address
*/
public String getAddress() {
return address;
}
/**
* returning the persons occupation
*/
public String getOccupation() {
return occupation;
}
/**
* Returning the persons credentials
*/
public String toString() {
return "Person ID: "+personID+"\nFirst Name: "+firstName+"\nLast Name: "+lastName+"\nGender: "+gender+"\nRace: "+race+"\nAge: "+age+"\nHeight: "+
height+"\nWeight: "+weight+"\nPhone Number: "+phoneNumber+"\nAddress: "+address+"\nOccupation: "+occupation;
}
}