-
Notifications
You must be signed in to change notification settings - Fork 1
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
[1차 VER1.0] Java ToyProject upload by HyungseokOh #16
Open
brotherstone97
wants to merge
74
commits into
FastCampusKDTBackend:main
Choose a base branch
from
brotherstone97:HyungseokOh
base: main
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
[1차 VER1.0] Java ToyProject upload by HyungseokOh #16
brotherstone97
wants to merge
74
commits into
FastCampusKDTBackend:main
from
brotherstone97:HyungseokOh
Conversation
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
고객을 의미하는 Customer클래스와 고객객체를 담을 Customers 클래스 생성
향후 Map, Set등 필요 시 컬렉션 프레임워크를 직접 구현하기 위해 java의 Collection과 유사한 MyCollection도 생성함.
배포된 예시 프로그램 내 고객 정보 및 고객 등급 분류 기준에 대한 조회 기능이 있음을 확인, 기능 목록에 반영함.
콘솔 프로그램 내 고객 및 고객 등급 정보를 CRUD하기 위한 기능 구현 용도로 패키지 추가함.
CRUD메서드가 부모클래스 Menu에 있는 것이 부적절하다고 생각되어 인터페이스로 분리하였습니다.
모든 고객의 정보를 조회할 수 있도록 리스트의 모든 요소를 출력했습니다.
Parameter클래스는 최소 이용 시간, 최소 누적 결제 금액을 필드로 갖는다.
등급의 정보를 담은 Group클래스, Group객체를 저장하기 위한 Groups클래스, 각 등급을 분류하기 위한 GroupType Enum을 생성했습니다.
Customer객체 생성 시 해당 메서드 호출하여 세가지 GroupType 중 하나를 갖도록 했습니다. 고객 정보 수정 시에도 같은 방법 적용 예정입니다.
…tomer패키지로 이동 잘못된 패키지에 클래스를 생성한 것을 바로잡았습니다.
요약 모드에서 사용자가 이름순, 누적 이용 시간순, 누적 결제 금액 순 중 하나를 고르면 이 기준에 따라 정렬 가능하도록 Customer클래스를 수정하고 SortBy enum클래스를 만들었습니다.
ClassifiedCustomer에서 위 필드를 갖는 게 의미상으로도 적절할뿐더러 Customer객체와는 달리 싱글톤 객체이기에 상태를 저장하기에도 좋다고 판단했습니다.
사용자의 입력을 받아 적절한 OrderType을 리턴하는 inputOrderType메서드 정의 및 이를 받아 이름 순으로 정렬하는 summarySortByName()정의
모든 메뉴 클래스가 메뉴번호를 입력받는 메서드를 구현해야함에 따라 부모클래스에 이를 정의하고 자식클래스에서 오버라이딩하도록 함.
여러 클래스에서 사용되는 readNumber()의 구현내용이 숫자의 범위를 제외하고 모두 겹침. 따라서, 부모클래스에서만 해당 메서드를 정의하고 자식메서드는 이를 호출하도록 함.
세부 메뉴에서 뒤로가기에 해당하는 번호를 입력받아도 프로그램이 꺼지지 않도록 while문을 이용해 실행 상태 유지
…로 분리 여러 메뉴에서 같은 기능을 사용함에 따라 검증기능을 수행하는 클래스를 만들고 그 클래스 내 정의된 메서드를 사용하도록 함.
MyArrayList에 Iterable이 아직 구현되지 않아 당장 향상된 for문을 사용할 수 없어 변경함.
등급 기준을 입력받을 때 누적 이용 시간, 누적 결제 금액 중 하나만 입력되더라도 메인메뉴로 나가는 오류를 수정함.
MyArrayList에 Iterable이 아직 구현되지 않아 당장 향상된 for문을 사용할 수 없어 변경함.
번호는 1부터 받았지만 이를 직접적으로 사용해 인덱스로 사용하던 것을 -1 해주어 고침
5853062
to
28e03b9
Compare
반복문의 인덱스를 j가 아닌 i를 참조하던 것을 수정
fee4e0e
to
1b2ef80
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
계속 기능 구현중에 있습니다.
모든 지적 환영합니다.. 빡센 리뷰 부탁드릴게요..!