
Java 9 Streams
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
In seinem shortcut zeigt Sven Ruppert, was genau diese Streams sind, wie man sie einsetzt und welche Vorteile sich aus dem Einsatz ergeben, sowohl für serielle als auch für parallele Nutzung. Dabei erläuert er anhand zahlreicher Codebeispiele sehr genau verschiedene Methoden der Implementierung, geht bei den "Collector"- und "StreamSupport"-Klassen ins Detail und schlägt den großen Bogen zum Paradigma der funktionalen Programmierung.
More details
Person
Content
- Intro
- Impressum
- 1 Funktionale Programmierung in Java 9
- 1.1 Was waren nochmal diese Streams?
- 1.2 Functional Interfaces
- 1.3 Lambdas
- 1.4 Optional&T&
- 1.5 Zusammenfassung
- 2 Streams: Data in, Data out
- 2.1 Wo kommen die Quelldaten her?
- 2.2 Wo gehen die Daten hin?
- 2.3 Collectors
- 2.3.1 toList und toSet
- 2.3.2 toMap
- 2.3.3 groupingBy
- 2.3.4 reducing
- 2.3.5 joining
- 2.3.6 collectingAndThen
- 2.3.7 averagingInt, averagingDouble und averagingLong
- 2.3.8 summarizingInt, summarizingDouble und summarizingLong
- 2.3.9 summingInt, summingDouble und summingLong
- 2.3.10 counting
- 2.3.11 maxBy und minBy
- 2.3.12 mapping
- 2.3.13 partitioningBy
- 2.3.14 flatMapping
- 2.3.15 filtering
- 2.3.16 collectingAndThen
- 2.4 Kombinieren von Collectors
- 2.5 Eigene Collectors
- 2.5.1 Collectors.of()
- 2.5.2 Interface "Collector" implementieren
- 2.5.3 Beispiel eines eigenen Collectors
- 2.6 AutoCloseable
- 2.7 Zusammenfassung
- 3 Streams - Core Methods
- 3.1 forEach - ein Lambda für jedes Element
- 3.2 map - Transformationen gefällig?
- 3.3 filter - wer darf es sein?
- 3.4 findFirst - was ist das erste Element?
- 3.5 reduce - bring es auf einen Nenner
- 3.6 limit/skip - bitte nicht alles
- 3.7 distinct - alles nur einmal, bitte
- 3.8 min/max - ganz klein, ganz groß
- 3.9 allMatch, anyMatch, noneMatch und count
- 3.10 parallel/sequential - umschalten, wenn nötig
- 3.11 ofNullable
- 3.12 dropWhile/takeWhile
- 3.13 static Method - iterate
- 3.14 Zusammenfassung
- 4 StreamSupport
- 4.1 Spliterators
- 4.2 Klasse "Spliterators"
- 4.3 Interface "Spliterator"
- 4.4 Beispiel
- 4.5 Zusammenfassung
- 5 Kleinere Streams-Pattern-Beispiele
- 5.1 Ist es eine Primzahl?
- 5.2 Fibonacci als Stream
- 5.3 Matrix als Stream
- 5.4 Zusammenfassung
- Der Autor
System requirements
File format: ePUB
Copy protection: Watermark-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Use a reading software that can process the file format ePUB: e.g., Adobe Digital Editions or FBReader – both free (see eBook Help).
- Tablet/Smartphone (Android; iOS): Before downloading, install the free app Adobe Digital Editions (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePUB works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Watermark-DRM, a „soft” copy protection. This means that there are no technical restrictions to prevent illegal distribution. However, there is a personalised watermark embedded in the eBook that can be used to identify the purchaser of the eBook in the event of misuse and to provide evidence for legal purposes.
For more information, see our eBook Help page.