mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 00:50:31 +00:00
more debug
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@292 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
6ddd09f16c
commit
8a6b2a9ae3
2 changed files with 11 additions and 1 deletions
|
@ -18,6 +18,7 @@
|
||||||
package de.schildbach.pte.dto;
|
package de.schildbach.pte.dto;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -57,7 +58,8 @@ public final class Connection implements Serializable
|
||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
return id;
|
final SimpleDateFormat FORMAT = new SimpleDateFormat("E HH:mm");
|
||||||
|
return id + " " + FORMAT.format(departureTime) + "-" + FORMAT.format(arrivalTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
package de.schildbach.pte.dto;
|
package de.schildbach.pte.dto;
|
||||||
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -32,4 +33,11 @@ public final class GetConnectionDetailsResult
|
||||||
this.currentDate = currentDate;
|
this.currentDate = currentDate;
|
||||||
this.connection = connection;
|
this.connection = connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
final SimpleDateFormat FORMAT = new SimpleDateFormat("EE dd.MM.yy");
|
||||||
|
return FORMAT.format(currentDate) + "|" + connection.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue