diff options
author | Christopher Baines <cbaines8@gmail.com> | 2012-01-23 22:58:04 +0000 |
---|---|---|
committer | Christopher Baines <cbaines8@gmail.com> | 2012-01-23 22:58:04 +0000 |
commit | 591bb6b492edbfcb868ef690c8fc622a5ca2f58e (patch) | |
tree | b6a17353aa84e96e89e743770ba3824099f884d4 /src/net/cbaines/suma/Bus.java | |
parent | 63e1cb8f84d9530066caa4b2bf98a4b691ff830c (diff) | |
download | southamptonuniversitymap-591bb6b492edbfcb868ef690c8fc622a5ca2f58e.tar southamptonuniversitymap-591bb6b492edbfcb868ef690c8fc622a5ca2f58e.tar.gz |
Refactored BusTimeActivity to BusStopActivity, Fixed issue with Timetables, and Activity rotation. Also added some basic effects to the stop list.
Diffstat (limited to 'src/net/cbaines/suma/Bus.java')
-rw-r--r-- | src/net/cbaines/suma/Bus.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/net/cbaines/suma/Bus.java b/src/net/cbaines/suma/Bus.java index c73d6d7..ff71df4 100644 --- a/src/net/cbaines/suma/Bus.java +++ b/src/net/cbaines/suma/Bus.java @@ -54,4 +54,26 @@ public class Bus { return String.valueOf(id); } + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + id; + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + Bus other = (Bus) obj; + if (id != other.id) + return false; + return true; + } + } |