Modern Java recipes simple solutions to difficult problems in Java 8 and 9
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Beijing ; Boston ; Farnham ; Sebastopol ; Tokyo
O'Reilly
August 2017
|
Ausgabe: | First edition |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV044486697 | ||
003 | DE-604 | ||
005 | 00000000000000.0 | ||
007 | t | ||
008 | 170913s2017 |||| 00||| eng d | ||
020 | |a 9781491973172 |9 978-1-491-97317-2 | ||
035 | |a (OCoLC)1011111728 | ||
035 | |a (DE-599)BVBBV044486697 | ||
040 | |a DE-604 |b ger |e rda | ||
041 | 0 | |a eng | |
049 | |a DE-473 |a DE-11 | ||
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
100 | 1 | |a Kousen, Kenneth A. |e Verfasser |0 (DE-588)1049227832 |4 aut | |
245 | 1 | 0 | |a Modern Java recipes |b simple solutions to difficult problems in Java 8 and 9 |c Ken Kousen |
250 | |a First edition | ||
264 | 1 | |a Beijing ; Boston ; Farnham ; Sebastopol ; Tokyo |b O'Reilly |c August 2017 | |
300 | |a xviii, 299 Seiten | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
653 | 0 | |a Java (Computer program language) | |
856 | 4 | 2 | |m Digitalisierung UB Bamberg - ADAM Catalogue Enrichment |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029886749&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-029886749 |
Datensatz im Suchindex
DE-473_call_number | 61/ST 250j35 GA 12596 |
---|---|
DE-473_location | 6 |
DE-BY-UBG_katkey | 196364666 |
DE-BY-UBG_local_notation | ST 250j35 |
DE-BY-UBG_media_number | 013908256574 |
_version_ | 1811360876446351360 |
adam_text | Table of Contents
Foreword...................................................................... ix
Preface....................................................................... xi
1. The Basics.................................................................. 1
1.1 Lambda Expressions 2
1.2 Method References 6
1.3 Constructor References 10
1.4 Functional Interfaces 15
1.5 Default Methods in Interfaces 18
1.6 Static Methods in Interfaces 21
2. Thejava.utilJunction Package................................................ 25
2.1 Consumers 26
2.2 Suppliers 28
2.3 Predicates 31
2.4 Functions 35
3. Streams.................................................................... 39
3.1 Creating Streams 39
3.2 Boxed Streams 43
3.3 Reduction Operations Using Reduce 46
3.4 Check Sorting Using Reduce 55
3.5 Debugging Streams with peek 57
3.6 Converting Strings to Streams and Back 60
3.7 Counting Elements 63
3.8 Summary Statistics 65
3.9 Finding the First Element in a Stream 68
ЗЛО Using anyMatch, allMatch, and noneMatch 73
3.11 Stream flatMap Versus map 75
ЗЛ2 Concatenating Streams 79
3Л 3 Lazy Streams 83
4. Comparators and Collectors................................................87
4Л Sorting Using a Comparator 87
4.2 Converting a Stream into a Collection 91
4.3 Adding a Linear Collection to a Map 94
4.4 Sorting Maps 97
4.5 Partitioning and Grouping 100
4.6 Downstream Collectors 102
4.7 Finding Max and Min Values 104
4.8 Creating Immutable Collections 107
4.9 Implementing the Collector Interface 109
5. Issues with Streams, Lambdas, and Method References......................115
5.1 The java.util.Objects Class 115
5.2 Lambdas and Effectively Final 117
5.3 Streams of Random Numbers 120
5.4 Default Methods in Map 122
5.5 Default Method Conflict 127
5.6 Iterating Over Collections and Maps 130
5.7 Logging with a Supplier 132
5.8 Closure Composition 134
5.9 Using an Extracted Method for Exception Handling 138
5.10 Checked Exceptions and Lambdas 141
5.11 Using a Generic Exception Wrapper 144
6. The Optional Type....................................................... 147
6.1 Creating an Optional 148
6.2 Retrieving Values from an Optional 150
6.3 Optional in Getters and Setters 154
6.4 Optional flatMap Versus map 156
6.5 Mapping Optionals 160
7. File 1/0............................................................. 165
7.1 Process Files 166
7.2 Retrieving Files as a Stream 169
7.3 Walking the Filesystem 170
7.4 Searching the Filesystem 172 vi
vi I Table of Contents
8, Thejava.timePackage.................................................... 175
8.1 Using the Basic Date-Time Classes 176
8.2 Creating Dates and Times from Existing Instances 180
8.3 Adjusters and Queries 185
8.4 Convert from java.util.Date to java.time.LocalDate 190
8.5 Parsing and Formatting 194
8.6 Finding Time Zones with Unusual Offsets 197
8.7 Finding Region Names from Offsets 200
8.8 Time Between Events 202
9. Parallelism and Concurrency............................................ 205
9.1 Converting from Sequential to Parallel Streams 206
9.2 When Parallel Helps 209
9.3 Changing the Pool Size 215
9.4 The Future Interface 217
9.5 Completing a CompletableFuture 220
9.6 Coordinating CompletableFutures, Part 1 225
9.7 Coordinating CompletableFutures, Part 2 233
10. Java 9 Additions..........................................................239
10.1 Modules in Jigsaw 240
10.2 Private Methods in Interfaces 245
10.3 Creating Immutable Collections 247
10.4 Stream: ofNullable, iterate, takeWhile, and dropWhile 252
10.5 Downstream Collectors: filtering and flatMapping 255
10.6 Optional: stream, or, ifPresentOrElse 259
10.7 Date Ranges 262
A. Generics and Java 8...................................................... 267
Index........................................................................ 287
Table of Contents I vil
|
any_adam_object | 1 |
author | Kousen, Kenneth A. |
author_GND | (DE-588)1049227832 |
author_facet | Kousen, Kenneth A. |
author_role | aut |
author_sort | Kousen, Kenneth A. |
author_variant | k a k ka kak |
building | Verbundindex |
bvnumber | BV044486697 |
classification_rvk | ST 250 |
ctrlnum | (OCoLC)1011111728 (DE-599)BVBBV044486697 |
discipline | Informatik |
edition | First edition |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01215nam a2200301 c 4500</leader><controlfield tag="001">BV044486697</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">00000000000000.0</controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">170913s2017 |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781491973172</subfield><subfield code="9">978-1-491-97317-2</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)1011111728</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV044486697</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-473</subfield><subfield code="a">DE-11</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Kousen, Kenneth A.</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1049227832</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Modern Java recipes</subfield><subfield code="b">simple solutions to difficult problems in Java 8 and 9</subfield><subfield code="c">Ken Kousen</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">First edition</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Beijing ; Boston ; Farnham ; Sebastopol ; Tokyo</subfield><subfield code="b">O'Reilly</subfield><subfield code="c">August 2017</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">xviii, 299 Seiten</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="653" ind1=" " ind2="0"><subfield code="a">Java (Computer program language)</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Bamberg - ADAM Catalogue Enrichment</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029886749&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-029886749</subfield></datafield></record></collection> |
id | DE-604.BV044486697 |
illustrated | Not Illustrated |
index_date | 2024-09-20T13:29:36Z |
indexdate | 2024-09-27T16:41:23Z |
institution | BVB |
isbn | 9781491973172 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-029886749 |
oclc_num | 1011111728 |
open_access_boolean | |
owner | DE-473 DE-BY-UBG DE-11 |
owner_facet | DE-473 DE-BY-UBG DE-11 |
physical | xviii, 299 Seiten |
publishDate | 2017 |
publishDateSearch | 2017 |
publishDateSort | 2017 |
publisher | O'Reilly |
record_format | marc |
spellingShingle | Kousen, Kenneth A. Modern Java recipes simple solutions to difficult problems in Java 8 and 9 |
title | Modern Java recipes simple solutions to difficult problems in Java 8 and 9 |
title_auth | Modern Java recipes simple solutions to difficult problems in Java 8 and 9 |
title_exact_search | Modern Java recipes simple solutions to difficult problems in Java 8 and 9 |
title_full | Modern Java recipes simple solutions to difficult problems in Java 8 and 9 Ken Kousen |
title_fullStr | Modern Java recipes simple solutions to difficult problems in Java 8 and 9 Ken Kousen |
title_full_unstemmed | Modern Java recipes simple solutions to difficult problems in Java 8 and 9 Ken Kousen |
title_short | Modern Java recipes |
title_sort | modern java recipes simple solutions to difficult problems in java 8 and 9 |
title_sub | simple solutions to difficult problems in Java 8 and 9 |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029886749&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT kousenkennetha modernjavarecipessimplesolutionstodifficultproblemsinjava8and9 |