Martin Ahrer

Thinking outside the box

0001-01-01 1 min read
Or Else Throw
Unresolved directive in <stdin> - include::../../../../../../../../src/main/java/ten/api/OptionalApi.java[tag=orElseThrow]

A argumentless method Optional.orElseThrow() that throws a NoSuchElementException has been added.

0001-01-01 1 min read

The following describes selected improvements of the Java API. See the Java 10 release notes.

Unresolved directive in <stdin> - include::MapApi.adoc[leveloffset=+1] Unresolved directive in <stdin> - include::OptionalApi.adoc[leveloffset=+1] Unresolved directive in <stdin> - include::CollectorsApi.adoc[leveloffset=+1] Unresolved directive in <stdin> - include::SetApi.adoc[leveloffset=+1] Unresolved directive in <stdin> - include::ListApi.adoc[leveloffset=+1]

Continue reading

0001-01-01 1 min read
Copy Of
Unresolved directive in <stdin> - include::../../../../../../../../src/main/java/ten/api/SetApi.java[tag=copyOf]

With Set.copyOf we can now create an immutable copy of a list.

0001-01-01 1 min read

var is not a keyword but a reserved type identifier. The type is inferred from the initializer.

See https://openjdk.java.net/projects/amber/LVTIstyle.html which discusses when var should be used and when best avoided.

var
Unresolved directive in <stdin> - include::../../../../../../../../src/main/java/ten/lang/LocalVariableTypeInference.java[tag=varTypeInference]

0001-01-01 1 min read

The following describes selected improvements of the Java language. See the Java 10 release notes.

Unresolved directive in <stdin> - include::LocalVariableTypeInference.adoc[leveloffset=+1]

0001-01-01 1 min read

The new newFileSystem method allows to access the content of a file like a file system. Read more in the Java 13 Java API documentation.

New File System
Unresolved directive in <stdin> - include::../../../../../../../../src/main/java/thirteen/api/FileSystemsApi.java[tag=newFileSystem]

0001-01-01 1 min read

The following describes selected improvements of the Java API. See the Java 13 release notes.

Unresolved directive in <stdin> - include::FileSystemsApi.adoc[leveloffset=+1]

Older posts Newer posts