blob: fdde951f8751e36712340edfc13ce1a4876d4f95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* $Id$ */
package org.noreply.fancydress.type3;
public class HalfPath {
private Hop[] hops;
public HalfPath(Hop[] hops) {
this.hops = hops;
}
public Hop[] getHops() {
return hops;
}
public String asString() {
String result = null;
for (int i=0; i<hops.length; i++)
result = (result == null) ? hops[i].getNickname() : result + "," + hops[i].getNickname();
return result;
}
}
|