Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb497553

Browse files
committed
Table of Contents
1 parent5ebecfc commitb497553

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

‎README.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,44 @@
44
55
Welcome to my introduction to[Java 8](https://jdk8.java.net/). This tutorial guides you step by step through all new language features. Backed by short and simple code samples you'll learn how to use default interface methods, lambda expressions, method references and repeatable annotations. At the end of the article you'll be familiar with the most recent[API](http://download.java.net/jdk8/docs/api/) changes like streams, functional interfaces, map extensions and the new Date API. No walls of text - just a bunch of commented code snippets. Enjoy!
66

7-
This article was originally posted on my[blog](http://winterbe.com/posts/2014/03/16/java-8-tutorial/).
7+
This article was originally posted on[my blog](http://winterbe.com/posts/2014/03/16/java-8-tutorial/).
8+
9+
##Table of Contents
10+
11+
*[Default Methods for Interfaces](#default-methods-for-interfaces)
12+
*[Lambda expressions](#lambda-expressions)
13+
*[Functional Interfaces](#functional-interfaces)
14+
*[Method and Constructor References](#method-and-constructor-references)
15+
*[Lambda Scopes](#lambda-scopes)
16+
*[Accessing local variables](#accessing-local-variables)
17+
*[Accessing fields and static variables](#accessing-fields-and-static-variables)
18+
*[Accessing Default Interface Methods](#accessing-default-interface-methods)
19+
*[Built-in Functional Interfaces](#built-in-functional-interfaces)
20+
*[Predicates](#predicates)
21+
*[Functions](#functions)
22+
*[Suppliers](#suppliers)
23+
*[Consumers](#consumers)
24+
*[Comparators](#comparators)
25+
**[Optionals](#optionals)
26+
*[Streams](#streams)
27+
*[Filter](#filter)
28+
*[Sorted](#sorted)
29+
*[Map](#map)
30+
*[Match](#match)
31+
*[Count](#count)
32+
*[Reduce](#reduce)
33+
*[Parallel Streams](#parallel-streams)
34+
*[Sequential Sort](#sequential-sort)
35+
*[Parallel Sort](#parallel-sort)
36+
*[Maps](#maps)
37+
*[Date API](#date-api)
38+
*[Clock](#clock)
39+
*[Timezones](#timezones)
40+
*[LocalTime](#localtime)
41+
*[LocalDate](#localdate)
42+
*[LocalDateTime](#localdatetime)
43+
*[Annotations](#annotations)
44+
*[Where to go from here](#where-to-go-from-here)
845

946
##Default Methods for Interfaces
1047

@@ -492,7 +529,7 @@ System.out.println(String.format("parallel sort took: %d ms", millis));
492529

493530
As you can see both code snippets are almost identical but the parallel sort is roughly 50% faster. All you have to do is change`stream()` to`parallelStream()`.
494531

495-
##Map
532+
##Maps
496533

497534
As already mentioned maps don't support streams. Instead maps now support various new and useful methods for doing common tasks.
498535

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp