mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 18:39:50 +00:00
Helper method to find the right StationDepartures in QueryDeparturesResult.
This commit is contained in:
parent
fbaf03969c
commit
46a281a2ee
1 changed files with 11 additions and 0 deletions
|
@ -56,4 +56,15 @@ public final class QueryDeparturesResult implements Serializable
|
||||||
builder.append("]");
|
builder.append("]");
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public StationDepartures findStationDepartures(final String stationId)
|
||||||
|
{
|
||||||
|
for (final StationDepartures departures : stationDepartures)
|
||||||
|
{
|
||||||
|
if (stationId.equals(departures.location.id))
|
||||||
|
return departures;
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue