-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPath_movt.java
More file actions
123 lines (98 loc) · 2.14 KB
/
Path_movt.java
File metadata and controls
123 lines (98 loc) · 2.14 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
package Individual_Project;
import java.util.Objects;
/**
* A class representing a path_movt using its unique id and its name if given.
*/
public class Path_movt {
private int path_movtId;
private String path_movtName;
/**
* @param path_movtId
* @param path_movtName
*/
public Path_movt(int path_movtId, String path_movtName) {
this.path_movtId = path_movtId;
this.path_movtName = path_movtName;
}
/**
* In case there is not a name available for the
* path_movt this constructor is called.
* @param k
*/
public Path_movt(int k) {
this.path_movtId = k;
this.path_movtName = "None";
// txtWriter.name_id(path_movt.getPath_movtName());
}
/**
* @return the path_movtId
*/
public int getPath_movtId() {
return path_movtId;
}
/**
* @param path_movtId is the id of the path_movt to set
*/
public void setPath_movtId(int path_movtId) {
this.path_movtId = path_movtId;
}
/**
* @return the path_movtName
*/
public String getPath_movtName() {
return path_movtName;
}
/**
* @param path_movtName is the name of the path_movt to set
*/
public void setPath_movtName(String path_movtName) {
this.path_movtName = path_movtName;
}
@Override
/**
*
* To string
*
* @return String
*/
public String toString() {
return "Path_movt with path_movtId = " + path_movtId + " path_movtName = " + path_movtName;
}
/* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
@Override
/**
*
* Hash code
*
* @return int
*/
public int hashCode() {
return Objects.hash(path_movtId, path_movtName);
}
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
/**
*
* Equals
*
* @param obj the obj
* @return boolean
*/
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
Path_movt other = (Path_movt) obj;
return path_movtId == other.path_movtId && Objects.equals(path_movtName, other.path_movtName);
}
}