
Practical Java 8
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Persons
Rodrigo Turini, gratuate in Computer Science, is a developer and instructor at Caelum. He develops web applications in Java and currently focuses his studies on the cloud computing influence as a service.
Content
- Intro
- Java 8
- Hold your horses!
- Access the code and talk to us!
- Hello Lambda!
- The old way and the new way of doing loops
- Let Lambda in!
- Functional Interfaces
- Another Example: listeners
- Your very own functional interface
- The @FunctionalInterface annotation
- Digging deeper: the first details
- Default Methods
- The forEach method in the Iterable interface
- The Consumer interface doesn't have only one method!
- Another new method in Collection: removelf
- Multiple Inheritance?
- Sorting in Java 8
- Comparators using lambda
- The List.sort method
- Static methods in the Comparator Interface
- Knowing the Comparator.comparing better
- Sorting by score and the autoboxing
- Method References
- Turning all users into moderators
- Comparing in an even lighter way
- Composing comparators
- Referencing instance methods
- Referencing methods that receive arguments
- Referencing constructors
- Other types of references
- Streams and Collectors
- Making the top 10 users with highest scores moderators
- Streams: making the users with a score higher than 100 moderators
- How to get a List back?
- Collectors
- Advanced: why isn't there a toList in Stream?
- Listing only the scores of all users by using map
- InStream and the Streams family
- Optional in java.util
- More operations with Streams
- Sorting a Stream
- Many operations in Stream are lazy!
- what is the advantage of lazy methods?
- Seeing at the pipeline executing with peek
- Reduction operations
- Learning about other Stream methods
- Primitive and infinite streams
- Practicing what we learn with java.nio.file.Files
- FlatMap
- Mapping, partitioning, grouping, and parallelizing
- Collectors generating maps
- groupingBy and partitioningBy
- Running the pipeline in parallel
- Nondeterministic operations and ordered streams
- Enough with Calendar! New date API
- Java.time comes from Joda Time
- Working with dates fluently
- Enums instead of constants
- Formatting in the new date API
- Invalid dates
- Duration and Period
- Differences from Joda Time
- A payment model with Java 8
- A digital goodies store
- Reducing BigDecimal into sums
- Best selling products
- Value generated by product
- What are the products of each customer?
- Which one is our most special client?
- Reports with dates
- Subscription System
- Appendix: more Java 8 with reflection, JVM, APIs, and limitations
- New details in the language
- What is the type of a Lambda expression?
- Inference limitations in Lambda
- End of PermGen
- Reflection: parameter names
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.