1:10 escaping references 2:05 another ant-pattern example 2:28 getCustomers() 3:02 3:31 call clear() on that collection will 3:59 reference to the map has escaped from the class in which it should have been encapsulated 4:10 violate the encapsulation rule 5:17 an example of resolving escaping references 7:35 issue: the Iteracor has a remove() method 8:10 another better solution 11:52 elegant solution: return an immutable collection 12:05 Collections.unmodifiableMap() 12:05 Collections.unmodifiableList() 20:02 use interface to implement a Customer 20:44 Exclipse tip - extract interface from existing class 25:52 exercise of escaping reference
1:10 escaping references
2:05 another ant-pattern example
2:28 getCustomers()
3:02
3:31 call clear() on that collection will
3:59 reference to the map has escaped from the class in which it should have been encapsulated
4:10 violate the encapsulation rule
5:17 an example of resolving escaping references
7:35 issue: the Iteracor has a remove() method
8:10 another better solution
11:52 elegant solution: return an immutable collection
12:05 Collections.unmodifiableMap()
12:05 Collections.unmodifiableList()
20:02 use interface to implement a Customer
20:44 Exclipse tip - extract interface from existing class
25:52 exercise of escaping reference
Great tutorial! Best I 've seen so far!
exclement explenation greate work
Best tutorial ever .... Thanks
Very clear!
thank you! very good
Good tutorial! Where can I download the sample code in the video?
Please make tuts on JUnit too.
Awesome Explanation
Why and when develop focusing immutability?
Immutability lets avoid synchronization in concurrent applications