Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
함수형 프로그래밍 with 자바
by
벤 바이디히
,
허귀영
March 2024
Beginner to intermediate
528 pages
10h 48m
Korean
Hanbit Media, Inc.
Content preview from
함수형 프로그래밍 with 자바
173
CHAPTER 05
레코드
String group
,
LocalDateTime lastLogin
)
{
this
(
username
,
active
,
Optional
.
ofNullable
(
group
),
lastLogin
);
}
//
...
}
코드 자동 완성 기능은
group
컴포넌트의 옵션을 나타내는 두 생성자를 모두 보여줍니다.
레코드 생성 시의 유효성 검사와 편의성 생성자를 함께 사용하는 것은 레코드 생성자와 사용
자 모두에게 유연성을 제공하면서 안전성을 보장해줍니다.
5.3.6
레코드의 진화된 직렬화
레코드는 클래스처럼
java
.
io
.
Serializable
이라는 비어있는 마커 인터페이스를 상속하면
자동으로 직렬화됩니다. 하지만 레코드는 클래스와 달리 더욱 유연하고 안전한 직렬화 방식
을 제공하며, 추가적인 코드가 필요하지 않습니다.
NOTE
직렬화
serialization
의 전체 과정은 객체를 바이트 스트림으로 변환하는 직렬화와 바이트 스트림에서 객
체를 복구하는
역직렬화
deserialization
로 구성됩니다. 특별히 언급하지 않는 한, 직렬화는 이 두 과정을 모두 포괄
하는 용어로 사용됩니다.
일반적인 비레코드
non
-
record
객체의 직렬화는
private
상태에 접근하기 위해 고비용
17
의 리플
17
리플렉션과 관련된 ‘비용(
cost
)’이라는 단어는 성능 오버헤드와 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
실무로 통하는 클린 코드
막시밀리아노 콘티에리
함수형 사고: 객체지향 개발자에서 함수형 개발자로 거듭나기
김재완, 닐 포드
러닝 Go : Go 개발자처럼 생각하는 방법
존 보드너
AI를 위한 필수 수학
할라 넬슨
Publisher Resources
ISBN: 9791169212175