이펙티브 자바 Effective Java 2/E국내도서저자 : 조슈아 블로크(Joshua Bloch) / 이병준역출판 : 인사이트 2014.09.01상세보기 영양 성분표를 나타내는 클래스가 있다고 가정해보자 클래스의 필드 1. 총 제공량 2. 1회 제공량 3. 1회 제공량당 칼로리 4. 총 지방 함량 . . . 위 클래스를 코드로 나타내면 다음과 같다. public class NutritionFacts { private final int servingSize; private final int servings; private final int calories; private final int fat; private final int sodium; private final int carbohydrate; p..
이펙티브 자바 Effective Java 2/E국내도서저자 : 조슈아 블로크(Joshua Bloch) / 이병준역출판 : 인사이트 2014.09.01상세보기 클래스를 정의할 때 클래스에 public으로 선언된 정적 팩토리 메서드(static factory method) 를 추가하는 것을 고려해본다. public static Boolean valueOf (boolean b) { return b ? Boolean.TRUE : Boolean.FALSE; }장점1) 생성자와 달리 정적 팩터리 메서드에는 이름(name)이 있다. - 가독성에 도움이 된다. ex) 소수일 가능성이 높은 BigInteger 객체를 생성하는 생성자 BigInteger(int, int, Random) -> BigInteger.probab..
- Total
- Today
- Yesterday
- RoutePredication
- Flux
- RouteDefinition
- MariaDB
- router
- reative
- spring cloud gateway
- GlobalFilter
- mariadb-connector-j
- N+1
- AbstractMethodError
- Seperate Chaining
- ResultSet
- rate limit
- ConcurrentHashMap
- circurit breaker
- aurora
- reactor
- notifyAll()
- getBoolean
- HashMap
- custom config data convertion
- msyql-connector-java
- wait()
- notify()
- mariada-connector
- dynamodb
- referencedColumnName
- DyanomoDB
- Lazy
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |