일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- EnableAutoConfiguration
- WebApplication Type
- webjar
- Application Runner
- 백준
- HATEOAS
- AuthenticationPrincipal
- 백트래킹
- 브루트포스
- 스프링부트
- 스프링 부트
- Spring Security
- application.properties
- Application Argument
- cors
- 다익스트라
- 리소스핸들러
- @ConfigurationProperties
- Application Event
- OAuth2
- 정적 리소스
- HttpMessageConverters
- 알고리즘
- JsonSerializer
- @Profile
- 리소스 서버
- rest api
- 외부설정
- 백기선
- JPA
- Today
- Total
목록전체 글 (114)
아카이브
프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr package programmers.kakao_previous.blind_2018; public class Friends4Block_1st { static char[][] map; static boolean[][] visit; static int R, C; public static void main(String[] args) { R = 4; C = 5; String[] board = {"CCBDE", "AAADE", "AAABF", "CCBBF"}; int ans = solution(R, C, board); ..
equals() : 내용이 같은지, 동등성(equality) hashCode() : 같은 객체인지, 동일성(identity)equals()메소드를 오버라이딩 시 hashCode()도 오버라이딩 해야한다- Integer, String 클래스의 경우 같은 멤버 값에 대해서 같은 hashcode가 나올 수 있도록 오버라이딩 되어 있음- Object 클래스의 경우 hashCode()는 쓰레기 값을 반환- 즉, 사용자 정의 클래스의 경우 hashCode()를 오버라이딩 하지 않으면 같은 객체라도 hashcode가 다를 수 있음☞ 사용자가 hascode를 오버라이딩 해야 함 ☞ hashCode() 규약을 지키기 위함 1. equals() 로 비교시 두개의 오브젝트가 같다면, hashCode() 값도 같아야 한다.2..