Slide 1

Slide 1 text

Immutability in Java by Piotr Kafel (@PiotrKafel)

Slide 2

Slide 2 text

What does it mean that object is immutable ? Collections.unmodifiableCollection() ? Do we have some examples in JDK ?

Slide 3

Slide 3 text

Why should I care ?

Slide 4

Slide 4 text

How to ensure immutability ?

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

But what to do in such a case ?

Slide 8

Slide 8 text

"More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason — including blind stupidity." W.A. Wulf

Slide 9

Slide 9 text

Thank you !