Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Spring Batch
- 도메인주도설계
- elasticsearch
- Spring Boot
- 제주
- Storm
- Spring
- Spring XD
- Angular2
- Gradle
- Hbase
- Clean Code
- SBT
- Linux
- design pattern
- Java
- hdfs
- spark
- apache storm
- hibernate
- 스프링 배치
- scala
- 엘라스틱서치
- elastic search
- intellij
- docker
- Domain Driven Design
- DDD
- nginx
- hadoop
Archives
- Today
- Total
목록2016/11/08 (1)
욱'S 노트
Scala - Case 클래스
스칼라는 케이스 클래스 문법을 지원한다. 케이스클래스는 다음과 같은 일반적인 클래스이다.기본적으로 불변이다.패턴 매칭에 따라 분리될 수 있다.레퍼런스 대신 구조적 동일성에 의해 비교된다.간결하게 초기화 되고 사용될 수 있다.예제를 살펴보자. Notification 추상 클래스가 슈퍼클래스와 각 구현 클래스 Email, SMS, VoiceRecording이다.abstract class Notification case class Email(sourceEmail : String, title : String, body : String) extends Notification case class SMS(sourceNumber : String, message : String) extends Notification c..
Programming/Scala
2016. 11. 8. 11:25