The Interface Concept ...............................................................
ptg18360597
295
Properties of Interfaces .............................................................
6.1.2
297
Interfaces and Abstract Classes ...............................................
6.1.3
298
Static Methods ............................................................................
6.1.4
298
Default Methods ........................................................................
6.1.5
300
Resolving Default Method Conflicts .......................................
6.1.6
302
Examples of Interfaces ............................................................................
6.2
302
Interfaces and Callbacks ...........................................................
6.2.1
305
The
Comparator
Interface ................................................................
6.2.2
306
Object Cloning ...........................................................................
6.2.3
314
Lambda Expressions ...............................................................................
6.3
314
Why Lambdas? ..........................................................................
6.3.1
315
The Syntax of Lambda Expressions ........................................
6.3.2
318
Functional Interfaces .................................................................
6.3.3
319
Method References ....................................................................
6.3.4
321
Constructor References .............................................................
6.3.5
322
Variable Scope ............................................................................
6.3.6
324
Processing Lambda Expressions .............................................
6.3.7
328
More about Comparators .........................................................
6.3.8
329
Inner Classes .............................................................................................
6.4
331
Use of an Inner Class to Access Object State .........................
6.4.1
334
Special Syntax Rules for Inner Classes ...................................
6.4.2
335
Are Inner Classes Useful? Actually Necessary? Secure? ......
6.4.3
339
Local Inner Classes ....................................................................
6.4.4
339
Accessing Variables from Outer Methods ..............................
6.4.5
342
Anonymous Inner Classes .......................................................
6.4.6
346
Static Inner Classes ....................................................................
6.4.7
350
Proxies .......................................................................................................
6.5
350
When to Use Proxies .................................................................
6.5.1
350
Creating Proxy Objects .............................................................
6.5.2
355
Properties of Proxy Classes ......................................................
6.5.3
Do'stlaringiz bilan baham: