-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
π 3λ¨κ³ - μκΈ μ μ± μΆκ° #488
Open
moonstal1506
wants to merge
15
commits into
next-step:moonstal1506
Choose a base branch
from
moonstal1506:step3
base: moonstal1506
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9706b1b
docs: 2λ¨κ³ νΌλλ°± λ΄μ© μΆκ°
moonstal1506 135c69a
refactor: μΆλ°μ§/λμ°©μ§ νλΌλ―Έν°λ‘ μ λ¬ λ° PathFinder SubwayMapλ‘ μν μ΄λ
moonstal1506 813d9bb
refactor: Fare μμκ° ν¬μ₯ κ°μ²΄λ‘ λ³κ²½
moonstal1506 6c0b7e4
docs: μκΈ μ μ±
μΆκ° μꡬμ¬ν μμ±
moonstal1506 aee66b7
test: λ
Έμ λ³ μΆκ° μκΈ μΈμν
μ€νΈ μμ±
moonstal1506 9e84b32
test: λ
Έμ λ³ μΆκ° μκΈ λ¨μν
μ€νΈ μμ±
moonstal1506 1f25188
feat: λ
Έμ λ³ μΆκ° μκΈ κ΅¬ν
moonstal1506 8f9d1d4
test: λ‘κ·ΈμΈ μ¬μ©μ μ°λ Ήλ³ μκΈ κ³μ° μΈμν
μ€νΈ μμ±
moonstal1506 3795fda
test: μ°λ Ήλ³ μκΈ ν μΈ λ¨μν
μ€νΈ μμ±
moonstal1506 8abc39d
feat: μ°λ Ήλ³ μκΈ ν μΈ λ‘μ§ μμ±
moonstal1506 4835fd4
feat: ν ν°μ λμ΄ μΆκ°
moonstal1506 95311ce
feat: λ‘κ·ΈμΈ μ¬λΆμ λ°λΌ LoginMember μμ± λ‘μ§ λΆλ¦¬
moonstal1506 ffb7dc5
feat: λ‘κ·ΈμΈ μ¬μ©μ μ°λ Ήλ³ μκΈ κ³μ° λ‘μ§ μμ±
moonstal1506 2ae14b7
refactor: Line μμ±μ νλλ‘ λ³κ²½
moonstal1506 a6ed904
refactor: Pathμ Sections μΆκ°
moonstal1506 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package nextstep.auth.application; | ||
|
||
public class TokenInfo { | ||
|
||
private String email; | ||
private Integer age; | ||
|
||
public TokenInfo(String email, Integer age) { | ||
this.email = email; | ||
this.age = age; | ||
} | ||
|
||
public String getEmail() { | ||
return email; | ||
} | ||
|
||
public Integer getAge() { | ||
return age; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,6 @@ public interface UserDetails { | |
String getPassword(); | ||
|
||
String getEmail(); | ||
|
||
Integer getAge(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ public String getPassword() { | |
return password; | ||
} | ||
|
||
@Override | ||
public Integer getAge() { | ||
return age; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,34 @@ | ||
package nextstep.path; | ||
|
||
import nextstep.line.Line; | ||
import nextstep.station.Station; | ||
|
||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
public class Path { | ||
|
||
private List<Station> stations; | ||
private int distance; | ||
private int duration; | ||
private List<PathSection> pathSections; | ||
|
||
public Path(List<Station> stations, int distance, int duration) { | ||
public Path(List<Station> stations, List<PathSection> pathSections) { | ||
this.stations = stations; | ||
this.distance = distance; | ||
this.duration = duration; | ||
this.pathSections = pathSections; | ||
} | ||
|
||
public List<Station> getStations() { | ||
return stations; | ||
} | ||
|
||
public int getDistance() { | ||
return distance; | ||
return pathSections.stream().mapToInt(PathSection::getDistance).sum(); | ||
} | ||
|
||
public int getDuration() { | ||
return duration; | ||
return pathSections.stream().mapToInt(PathSection::getDuration).sum(); | ||
} | ||
|
||
public List<Line> getUsedLine() { | ||
return pathSections.stream().map(PathSection::getLine).distinct().collect(Collectors.toList()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stations λμ sections(ꡬκ°) μΆκ°μ λν νΌλλ°±μ λ°κ³
pathSections
λ§ λ°μμ μλ΅κ°(PathResponse)μ νμνgetStations()
λ₯Ό ꡬννλ λ°©λ²κ³Ό1λ²μ stations ꡬνλ λ‘μ§μ νλ² λ μμ±ν΄μΌ νλ€λ μ ,
2λ²μ pathSectionλ‘λ ꡬν κ°λ₯νλ° stationsλ₯Ό λ λ°λλ€λ μ μμ
μ΄λ€ λ°©μμ κ³ λ₯΄λ©΄ μ’μκΉμπ€