-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUbication.java
41 lines (33 loc) · 921 Bytes
/
Ubication.java
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
public class Ubication implements Comparable<Ubication>{
public String NameU;
public Float DistanceU;
public int totalZatU;
public Ubication(){
}
public Ubication(String Name, float DistanceU, int TotalZatU){
this.DistanceU = DistanceU;
this.NameU = Name;
this.totalZatU = TotalZatU;
}
public Float getDistanceU() {
return DistanceU;
}
public int getTotalZatU() {
return totalZatU;
}
public String getNameU() {
return NameU;
}
public void setDistanceU(Float distanceU) {
DistanceU = distanceU;
}
public void setNameU(String nameU) {
NameU = nameU;
}
public void setTotalZatU(int totalZatU) {
this.totalZatU = totalZatU;
}
public int compareTo(Ubication o) {
return DistanceU.compareTo(o.getDistanceU());
}
}