Repository navigation
Expand file tree
/
Copy pathCriminal.java
More file actions
116 lines (113 loc) · 3.33 KB
/
Copy pathCriminal.java
File metadata and controls
116 lines (113 loc) · 3.33 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
import java.util.ArrayList;
import java.util.UUID;
/**
* information about the criminals in the database
*/
public class Criminal extends Person{
private String bloodType;
private String fingerPrint;
private String hairColor;
private ArrayList<String> clothing;
private String footSize;
private String eyeColor;
private boolean isAlive;
private ArrayList<String> tattoos;
/**
* Criminal information
* @param personID criminal id
* @param firstName firstname of criminal
* @param lastName lastname of criminal
* @param gender criminal gender
* @param race criminal race
* @param age age of criminal
* @param height height of criminal
* @param weight criminal weight
* @param phoneNumber phonenumber of the criminal
* @param address address of the criminal
* @param occupation accupation of the criminal
* @param bloodType crimial blood type
* @param fingerprint criminal finger print
* @param hairColor criminal hair color
* @param clothing avaliable clothing of the criminal
* @param footSize criminal footsize
* @param eyeColor eye color of the criminal
* @param isAlive is the criminal alive
* @param tattoos criminal tatoos
*/
public Criminal(UUID personID, String firstName, String lastName, String gender, String race, int age, double height, double weight, String phoneNumber, String address, String occupation, String bloodType, String fingerprint, String hairColor, ArrayList<String> clothing, String footSize, String eyeColor, boolean isAlive, ArrayList<String> tattoos)
{
super(personID, firstName, lastName, gender, race, age, height, weight, phoneNumber, address, occupation);
this.bloodType = bloodType;
this.fingerPrint = fingerprint;
this.hairColor = hairColor;
this.clothing = clothing;
this.footSize = footSize;
this.eyeColor = eyeColor;
this.isAlive = isAlive;
this.tattoos = tattoos;
}
/**
* gets the blood type for the criminal
* @return returns the blood type of the criminal
*/
public String getBloodType() {
return bloodType;
}
/**
* get the fingerprint of the criminal
* @return return the fingerprint
*/
public String getFingerPrint() {
return fingerPrint;
}
/**
* gets the haircolor of the criminal
* @return returns the hair color
*/
public String getHairColor() {
return hairColor;
}
/**
* list of provided clothing of the criminal
* @return return provided clothing
*/
public ArrayList<String> getClothing() {
return clothing;
}
/**
* lists the footsize of the criminal
* @return return the footsize
*/
public String getFootSize() {
return footSize;
}
/**
* the eye color of the criminal
* @return return that eye color
*/
public String getEyeColor() {
return eyeColor;
}
/**
* checks if the criminal is alive
* @return returns if the criminal is alive or not
*/
public boolean isAlive() {
return isAlive;
}
/**
* lists avaliable tattoos for the criminal
* @return return the tattoos
*/
public ArrayList<String> getTattoos(){
return this.tattoos;
}
/**
* outputs all the information for the criminal
* @return returns all the information for the criminal
*/
public String toString(){
return super.toString()+"\nBlood Type: "+bloodType+"\nFinger Print: "+fingerPrint+"\nHair Color: "+hairColor+"\nClothing: "+clothing+
"\nFoot Size: "+footSize+"\nEye Color: "+eyeColor+"\nAlive: "+isAlive+"\nTattoos: "+tattoos+"\n";
}
}