forked from eugenp/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BAEL-16531] - Move all the existing articles on "optional" under jav…
…a-optional
- Loading branch information
1 parent
5df99fa
commit 34e61ef
Showing
29 changed files
with
230 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 0 additions & 85 deletions
85
...-modules/core-java-9-improvements/src/test/java/com/baeldung/java9/Java9OptionalTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 0 additions & 51 deletions
51
core-java-modules/core-java-9/src/test/java/com/baeldung/optionals/OptionalsTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
========= | ||
## Java Optional | ||
|
||
## Core Java Optional | ||
This module contains articles about Java Optional. | ||
|
||
### Relevant Articles: | ||
- [Java Optional as Return Type](https://www.baeldung.com/java-optional-return) | ||
- [Guide To Java 8 Optional](https://www.baeldung.com/java-optional) | ||
- [Java Optional – orElse() vs orElseGet()](https://www.baeldung.com/java-optional-or-else-vs-or-else-get) | ||
- [Guide to Java 8 Optional](https://www.baeldung.com/java-optional) | ||
- [Java Optional – orElse() vs orElseGet()](https://www.baeldung.com/java-optional-or-else-vs-or-else-get) | ||
- [Transforming an Empty String into an Empty Optional](https://www.baeldung.com/java-empty-string-to-empty-optional) | ||
- [Filtering a Stream of Optionals in Java](https://www.baeldung.com/java-filter-stream-of-optional) | ||
- [Java 9 Optional API Additions](https://www.baeldung.com/java-9-optional) | ||
- [Throw Exception in Optional in Java 8](https://www.baeldung.com/java-optional-throw-exception) | ||
- [Optional orElse Optional](https://www.baeldung.com/java-optional-or-else-optional) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...baeldung/optional/OrElseAndOrElseGet.java → ...g/optional/orelse/OrElseAndOrElseGet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...al/OrElseAndOrElseGetBenchmarkRunner.java → ...se/OrElseAndOrElseGetBenchmarkRunner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ReturnType/HandleOptionalTypeExample.java → ...returntype/HandleOptionalTypeExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...onalReturnType/OptionalToJsonExample.java → ...onalreturntype/OptionalToJsonExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...turnType/PersistOptionalTypeExample2.java → ...turntype/PersistOptionalTypeExample2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ptionalReturnType/PersistUserExample.java → ...ptionalreturntype/PersistUserExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...urnType/SerializeOptionalTypeExample.java → ...urntype/SerializeOptionalTypeExample.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...com/baeldung/optionalReturnType/User.java → ...com/baeldung/optionalreturntype/User.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.baeldung.optionalReturnType; | ||
package com.baeldung.optionalreturntype; | ||
|
||
import java.io.Serializable; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...dung/optionalReturnType/UserOptional.java → ...dung/optionalreturntype/UserOptional.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...optionalReturnType/UserOptionalField.java → ...optionalreturntype/UserOptionalField.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
...ava/com/baeldung/optionals/Optionals.java → ...aeldung/orelseoptional/OptionalUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.