private List<Train> createRandomTrains() {
Random random = new Random();
List<Train> ret = new ArrayList<Train>();
for (int count = 0; count < 10; count++) {
Train train = new Train();
train.setType(TrainType.values()[random.nextInt(TrainType
.values().length)]);
train.setDestination("random random random centraal");
int minute = random.nextInt(60);
train.setDepartureTime(random.nextInt(24) + ":"
+ (minute < 10 ? "0" : "") + minute);
train.setDelay(random.nextInt(10));
train.setPlatform(Integer.toString(random.nextInt(10)));
ret.add(train);
}
Collections.sort(ret, new Comparator<Train>() {
@Override
public int compare(Train o1, Train o2) {