Lines Matching defs:RouteInfo
34 public class RouteInfo implements Parcelable {
48 public RouteInfo(LinkAddress destination, InetAddress gateway) {
75 public RouteInfo(InetAddress gateway) {
79 public static RouteInfo makeHostRoute(InetAddress host) {
83 public static RouteInfo makeHostRoute(InetAddress host, InetAddress gateway) {
87 return new RouteInfo(new LinkAddress(host, 32), gateway);
89 return new RouteInfo(new LinkAddress(host, 128), gateway);
158 if (!(obj instanceof RouteInfo)) return false;
160 RouteInfo target = (RouteInfo) obj;
181 public static final Creator<RouteInfo> CREATOR =
182 new Creator<RouteInfo>() {
183 public RouteInfo createFromParcel(Parcel in) {
211 return new RouteInfo(dest, gateway);
214 public RouteInfo[] newArray(int size) {
215 return new RouteInfo[size];
238 * @return the RouteInfo from the Collection that best fits the given address
240 public static RouteInfo selectBestRoute(Collection<RouteInfo> routes, InetAddress dest) {
243 RouteInfo bestRoute = null;
245 for (RouteInfo route : routes) {