Skip to content

Commit

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

@Override
public StopLocation getLocation() {
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 @@ -282,6 +282,13 @@ public StopLocation getStop() {
return Objects.requireNonNullElse(stop, location);
}

public StopLocation getLocation() {
if (proxy != null) {
return proxy.getLocation();
}
return location;
}

public void setStop(StopLocation stop) {
if (proxy != null) {
proxy.setStop(stop);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public interface StopTimeProxy {

public StopLocation getStop();

public StopLocation getLocation();

public void setStop(StopLocation stop);

public void setLocation(StopLocation stop);
Expand Down Expand Up @@ -124,4 +126,5 @@ public interface StopTimeProxy {
public String getFreeRunningFlag();

public void setFreeRunningFlag(String freeRunningFlag);

}

0 comments on commit 9e81f73

Please sign in to comment.