Back to project page Bussan.
The source code is released under:
Copyright 2011 Kristian Bendiksen. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
If you think the Android project Bussan listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package no.kriben.bussan; //from w w w .j ava 2s . c om import no.kriben.busstopstrondheim.model.BusStop; public class BusStopWithDistance implements Comparable<BusStopWithDistance> { private BusStop busStop_; private double distance_; public BusStopWithDistance(BusStop busStop, double distance) { busStop_ = busStop; distance_ = distance; } public double getDistance() { return distance_; } public BusStop getBusStop() { return busStop_; } @Override public int compareTo(BusStopWithDistance another) { return Double.compare(getDistance(), another.getDistance()); } }