mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 08:10:46 +00:00
meaningful debug output for QueryConnectionsResults
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@264 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
3a060c0f5b
commit
cbeda5172e
2 changed files with 2 additions and 8 deletions
|
@ -57,13 +57,7 @@ public final class Connection implements Serializable
|
|||
@Override
|
||||
public String toString()
|
||||
{
|
||||
final StringBuilder builder = new StringBuilder(getClass().getName() + "[");
|
||||
builder.append("id=").append(id);
|
||||
builder.append(",departureTime=").append(departureTime);
|
||||
builder.append(",arrivalTime=").append(arrivalTime);
|
||||
builder.append(",parts=").append(parts);
|
||||
builder.append("]");
|
||||
return builder.toString();
|
||||
return id;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -103,7 +103,7 @@ public final class QueryConnectionsResult implements Serializable
|
|||
final StringBuilder builder = new StringBuilder(getClass().getName());
|
||||
builder.append("[").append(this.status).append(": ");
|
||||
if (connections != null)
|
||||
builder.append(connections.size()).append(" connections, ");
|
||||
builder.append(connections.size()).append(" connections " + connections + ", ");
|
||||
if (ambiguousFrom != null)
|
||||
builder.append(ambiguousFrom.size()).append(" ambiguous from, ");
|
||||
if (ambiguousVia != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue