Skip to content

Commit 2bc320e

Browse files
committed
feat(collections): 🎸 data search, translated
Refers: #10
1 parent 5a0c6cc commit 2bc320e

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,51 @@
11
:java-package: src/org/j6toj8/collections
22
:section-java-package: ../../../{java-package}
33

4-
=== Buscar por dados
4+
=== Search for data
55

6-
.Objetivo
6+
.Objective
77
--------------------------------------------------
88
Search for data by using methods, such as findFirst(), findAny(), anyMatch(), allMatch(), and noneMatch()
9-
-
10-
Buscar por dados utilizando métodos, como findFirst(), findAny(), anyMatch(), allMatch(), e noneMatch()
119
--------------------------------------------------
1210

13-
. É possível recuperar o primeiro ou um elemento qualquer da coleção.
11+
. You can retrieve the first or any element from the collection.
1412
+
1513
[source,java,indent=0]
1614
.{java-package}/datasearch/DataSearch_FindFirstAny.java
1715
----
1816
include::{section-java-package}/datasearch/DataSearch_FindFirstAny.java[tag=code]
1917
----
2018
+
21-
.Saída no console
19+
.console output
2220
[source,console]
2321
----
2422
First: 1
2523
Any: 9
2624
----
2725

28-
. É possível verificar se os elementos da coleção atendem ou não a algum critério.
26+
. You can check whether or not collection elements meet any criteria.
2927
+
3028
[source,java,indent=0]
3129
.{java-package}/datasearch/DataSearch_Match.java
3230
----
3331
include::{section-java-package}/datasearch/DataSearch_Match.java[tag=code]
3432
----
3533
+
36-
.Saída no console
34+
.console output
3735
[source,console]
3836
----
3937
anyMatch: true
4038
allMatch: false
4139
noneMatch: false
4240
----
4341

42+
.References
4443
****
4544
4645
* Using Streams
4746
+
48-
Boyarsky, Jeanne; Selikoff, Scott. OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide (p. 185). Wiley. Edição do Kindle.
47+
Boyarsky, Jeanne; Selikoff, Scott. OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide (p. 185). Wiley. Kindle Edition.
4948
5049
* https://www.baeldung.com/java-8-streams[The Java 8 Stream API Tutorial.]
5150
52-
****
51+
****

0 commit comments

Comments
 (0)