Jenkov.com - Java Lambda Expressions Java Lambda Expressions - Single Method Interface 자바8 람다 표현식은 컴파일 시에 인터페이스의 형식을 보고 추정(Inference)하여 기동된다.public interface StateChangeListener { public void onStateChange(State oldState, State newState); }stateOwner.addStateListener(new StateChangeListener() { public void onStateChange(State oldState, State newState) { // do something with the old and new state. } });stateOwner.addStateListener( (.. 더보기 Jenkov.com - Java Enum & Annotation Enum 상수는 아래의 예제 하나면 끝.public enum Level { HIGH (3), //calls constructor with value 3 MEDIUM(2), //calls constructor with value 2 LOW (1) //calls constructor with value 1 ; // semicolon needed when fields / methods follow private final int levelCode; Level(int levelCode) { this.levelCode = levelCode; } public int getLevelCode() { return this.levelCode; } } 자바의 Annotation 은 크게 3가지 방식으로 사용이 가능한데, C.. 더보기 클러스터 환경에서의 ETL 개발 시의 유의사항 보호되어 있는 글입니다. 더보기 이전 1 ··· 7 8 9 10 11 12 13 ··· 62 다음