Skip to content

Commit

Permalink
Add getter
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Dec 4, 2023
1 parent 6910224 commit fe9f32e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ public StopLocation getLocation() {
return stops[index];
}

@Override
public StopLocation getLocationGroup() {
return stops[index];
}

@Override
public void setStop(StopLocation stop) {
stops[index] = stop;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,13 @@ public StopLocation getLocation() {
return location;
}

public StopLocation getLocationGroup() {
if (proxy != null) {
return proxy.getLocationGroup();
}
return locationGroup;
}

/**
* Returns possible entity for the stop location in this order:
* - stop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public interface StopTimeProxy {
public StopLocation getStop();

public StopLocation getLocation();
public StopLocation getLocationGroup();

public void setStop(StopLocation stop);

Expand Down

0 comments on commit fe9f32e

Please sign in to comment.