MCPcopy Create free account

hub / github.com/JosePaumard/code-one-2019-lambda-stream-collector-lab / functions

Functions319 in github.com/JosePaumard/code-one-2019-lambda-stream-collector-lab

↓ 27 callersMethodtoString
()
src/test/java/org/paumard/codeone2019/D_Streams/model/Person.java:51
↓ 26 callersMethodapplyAsInt
(double a, double b)
src/test/java/org/paumard/codeone2019/A_Lambdas/b_comparators/F_Comparators.java:207
↓ 11 callersMethodactors
()
src/test/java/org/paumard/codeone2019/F_Challenges/model/Movie.java:45
↓ 7 callersMethodtoString
()
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/model/Circle.java:37
↓ 6 callersMethodapplyAsInt
(double a, double b)
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/b_comparators/F_Comparators.java:206
↓ 4 callersMethodgetThree
()
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/util/CircleFactory.java:30
↓ 4 callersMethodgetThree
()
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/util/CircleFactory.java:26
↓ 2 callersMethodaddActor
(Actor actor)
src/test/java/org/paumard/codeone2019/F_Challenges/model/Movie.java:41
↓ 2 callersMethodcreateFactory
(Supplier<Circle> circleSupplier)
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/util/CircleFactory.java:34
↓ 2 callersMethodmajority
Given an array of int, find the int value that occurs a majority of times in the array (that is, strictly more than half of the elements are that valu
src/solutions/java/org/paumard/solutions/codeone2019/D_Streams/N_Challenges.java:342
↓ 2 callersMethodmajority
Given an array of int, find the int value that occurs a majority of times in the array (that is, strictly more than half of the elements are that valu
src/test/java/org/paumard/codeone2019/D_Streams/N_Challenges.java:286
↓ 1 callersMethodgetDistinctCount
()
src/solutions/java/org/paumard/solutions/codeone2019/D_Streams/N_Challenges.java:100
↓ 1 callersMethodgetDistinctCount
()
src/test/java/org/paumard/codeone2019/D_Streams/N_Challenges.java:91
↓ 1 callersMethodgetTotalCount
()
src/solutions/java/org/paumard/solutions/codeone2019/D_Streams/N_Challenges.java:96
↓ 1 callersMethodgetTotalCount
()
src/test/java/org/paumard/codeone2019/D_Streams/N_Challenges.java:87
↓ 1 callersMethodtitle
()
src/test/java/org/paumard/codeone2019/F_Challenges/model/Movie.java:33
MethodActor
(String lastName, String firstName)
src/test/java/org/paumard/codeone2019/F_Challenges/model/Actor.java:24
MethodCircle
()
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/model/Circle.java:25
MethodMovie
(String title, int releaseYear)
src/test/java/org/paumard/codeone2019/F_Challenges/model/Movie.java:28
MethodPerson
(String firstName, String lastName, int age)
src/test/java/org/paumard/codeone2019/A_Lambdas/b_comparators/model/Person.java:25
MethodPerson
()
src/test/java/org/paumard/codeone2019/D_Streams/model/Person.java:26
Methoda_supplier01
Write a lambda expression that returns a new StringBuilder containing the string "abc".
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:37
Methoda_supplier01
Write a lambda expression that returns a new StringBuilder containing the string "abc".
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:38
Methoda_supplier02
Write a lambda expression that returns a new, empty StringBuilder. Try to write it using a method reference.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:49
Methoda_supplier02
Write a lambda expression that returns a new, empty StringBuilder. Try to write it using a method reference.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:51
Methoda_supplier03
Write a lambda expression that returns a new Circle. The Circle class is provided in the model package.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:61
Methoda_supplier03
Write a lambda expression that returns a new Circle. The Circle class is provided in the model package.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:64
Methoda_supplier04
Use the provided CircleFactory interface, that extends Supplier&lt;Circle>. Add a method to this interface that can create a list of three circles.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:73
Methoda_supplier04
Use the provided CircleFactory interface, that extends Supplier&lt;Circle>. Add a method to this interface that can create a list of three circles.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:77
Methoda_supplier05
Use the provided CircleFactory interface, that extends Supplier&lt;Circle>. Use the previous method from a_supplier04() that can create a list of thre
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:88
Methoda_supplier05
Use the provided CircleFactory interface, that extends Supplier&lt;Circle>. Add a method to this interface that can create a list of three red circles
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:92
Methoda_supplier06
Writing our factory in that way is not very nice. We would like to create a factor method to create a CircleFactory, and be able to call in that way:
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:105
Methoda_supplier06
Writing our factory in that way is not very nice. We would like to create a factor method to create a CircleFactory, and be able to call in that way:
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:110
Methoda_supplier07
And what about creating a factory of colored Circle in that way: <p/> <code>CircleFactory factory = CircleFactory.createFactory(Circle::new, "Blue");<
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:121
Methoda_supplier07
And what about creating a factory of colored Circle in that way: <p/> <code>CircleFactory factory = CircleFactory.createFactory(Circle::new, "Blue");<
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/A_Suppliers.java:129
Methodaccumulate
(String s)
src/solutions/java/org/paumard/solutions/codeone2019/D_Streams/N_Challenges.java:86
Methodaccumulate
(String s)
src/solutions/java/org/paumard/solutions/codeone2019/D_Streams/N_Challenges.java:236
Methodaccumulate
(String s)
src/test/java/org/paumard/codeone2019/D_Streams/N_Challenges.java:79
MethodactorsAndMovies00
This first test is free and is only here to make sure that everything is ok with the data files.
src/solutions/java/org/paumard/solutions/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:57
MethodactorsAndMovies00
This first test is free and is only here to make sure that everything is ok with the data files.
src/test/java/org/paumard/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:53
MethodactorsAndMovies01
From the set of movies, it should not be too hard to count the number of actors.
src/solutions/java/org/paumard/solutions/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:66
MethodactorsAndMovies01
From the set of movies, it should not be too hard to count the number of actors.
src/test/java/org/paumard/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:63
MethodactorsAndMovies02
First, count the number of release years in this file.
src/solutions/java/org/paumard/solutions/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:77
MethodactorsAndMovies02
First, count the number of release years in this file.
src/test/java/org/paumard/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:75
MethodactorsAndMovies03
Second, find the earliest year and the last year in this file. Try to do it in one pass over the data.
src/solutions/java/org/paumard/solutions/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:89
MethodactorsAndMovies03
Second, find the earliest year and the last year in this file. Try to do it in one pass over the data.
src/test/java/org/paumard/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:88
MethodactorsAndMovies04
Third, find the year that saw the greatest number of released movies, along with the number of movie released.
src/solutions/java/org/paumard/solutions/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:105
MethodactorsAndMovies04
Third, find the year that saw the greatest number of released movies, along with the number of movie released.
src/test/java/org/paumard/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:103
MethodactorsAndMovies05
Fourth, find the movie with the greatest number of actors in it. Hint: there is only one.
src/solutions/java/org/paumard/solutions/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:126
MethodactorsAndMovies05
Fourth, find the movie with the greatest number of actors in it. Hint: there is only one.
src/test/java/org/paumard/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:117
MethodactorsAndMovies06
Then, find the actor that played in the greatest number of movies.
src/solutions/java/org/paumard/solutions/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:142
MethodactorsAndMovies06
Then, find the actor that played in the greatest number of movies.
src/test/java/org/paumard/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:131
MethodactorsAndMovies07
A little harder: try to find the actor that played in the greatest number of movies during a year. <p/> There are several ways to use the Stream API t
src/solutions/java/org/paumard/solutions/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:174
MethodactorsAndMovies07
A little harder: try to find the actor that played in the greatest number of movies during a year. <p/> There are several ways to use the Stream API t
src/test/java/org/paumard/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:155
MethodactorsAndMovies08
Create now a stream of Map.Entry&lt;Actor, Actor> with all the actors that played together. Since we want unique pairs, you should make sure that in a
src/solutions/java/org/paumard/solutions/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:224
MethodactorsAndMovies08
Create now a stream of Map.Entry&lt;Actor, Actor> with all the actors that played together. Since we want unique pairs, you should make sure that in a
src/test/java/org/paumard/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:183
MethodactorsAndMovies09
The (almost) last step is to find the two actors that played the most together. Look carefully at the code you are writing. Since there are 170k actor
src/solutions/java/org/paumard/solutions/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:260
MethodactorsAndMovies09
The (almost) last step is to find the two actors that played the most together. Look carefully at the code you are writing. Since there are 170k actor
src/test/java/org/paumard/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:201
MethodactorsAndMovies10
The (real) last step is to find the two actors that played the most together during a year. The approach is the same as previously: try to create a co
src/solutions/java/org/paumard/solutions/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:297
MethodactorsAndMovies10
The (real) last step is to find the two actors that played the most together during a year. The approach is the same as previously: try to create a co
src/test/java/org/paumard/codeone2019/F_Challenges/ActorsAndMoviesChallenge.java:218
Methodb_consumer01
Write a lambda expression that clears the given list. Try to write this lambda using a method reference.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/B_Consumers.java:38
Methodb_consumer01
Write a lambda expression that clears the given list. Try to write this lambda using a method reference.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/B_Consumers.java:39
Methodb_consumer02
Write a lambda expression that appends the string ")" to the given StringBuilder.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/B_Consumers.java:52
Methodb_consumer02
Write a lambda expression that appends the string ")" to the given StringBuilder.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/B_Consumers.java:54
Methodb_consumer03
Write a lambda expression that adds the string "(" as the first element of the given StringBuilder.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/B_Consumers.java:66
Methodb_consumer03
Write a lambda expression that adds the string "(" as the first element of the given StringBuilder.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/B_Consumers.java:69
Methodb_consumer04
Write a lambda expression that adds the string "(" as the first element of the given StringBuilder and the string ")" as the last element of the given
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/B_Consumers.java:83
Methodb_consumer04
Write a lambda expression that adds the string "(" as the first element of the given StringBuilder and the string ")" as the last element of the given
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/B_Consumers.java:87
Methodb_consumer05
Write a lambda expression that adds the given string to the given list. Try to write this lambda as a method reference.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/B_Consumers.java:100
Methodb_consumer05
Write a lambda expression that adds the given string to the given list. Try to write this lambda as a method reference.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/B_Consumers.java:102
Methodb_consumer06
Write a lambda expression that adds the given key and value to the map. Try to write this lambda as a method reference.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/B_Consumers.java:115
Methodb_consumer06
Write a lambda expression that adds the given key and value to the map. Try to write this lambda as a method reference.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/B_Consumers.java:118
Methodc_predicate01
Write a lambda expression that is a predicate that tests whether a string null. Try to write this lambda using a method reference.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:38
Methodc_predicate01
Write a lambda expression that is a predicate that tests whether a string null. Try to write this lambda using a method reference.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:38
Methodc_predicate02
Write a lambda expression that is a predicate that tests whether a string is empty. Try to write this lambda using a method reference.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:52
Methodc_predicate02
Write a lambda expression that is a predicate that tests whether a string is empty. Try to write this lambda using a method reference.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:53
Methodc_predicate03
Create a predicate that returns true when the given String is non-null. Try to use the predicate you wrote for c_predicate1()
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:66
Methodc_predicate03
Create a predicate that returns true when the given String is non-null. Try to use the predicate you wrote for c_predicate01()
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:68
Methodc_predicate04
Create a predicate that returns true when the given String is null or empty. Try to use the predicates you wrote for c_predicate1() c_predicate2()
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:82
Methodc_predicate04
Create a predicate that returns true when the given String is null or empty. Try to use the predicates you wrote for c_predicate01() c_predicate02()
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:83
Methodc_predicate05
Create a predicate that returns true when the given String is non-null and non-empty. You can use the predicates you wrote for c_predicate1() c_predic
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:101
Methodc_predicate05
Create a predicate that returns true when the given String is non-null and non-empty. You can use the predicates you wrote for c_predicate01() c_predi
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:100
Methodc_predicate06
Write a lambda expression that is a predicate that tests whether a string is shorter than four characters.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:118
Methodc_predicate06
Write a lambda expression that is a predicate that tests whether a string is shorter than four characters.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:115
Methodc_predicate07
Create a predicate that is true if the provided string equals ERROR. Try writing it using a method reference.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:132
Methodc_predicate07
Create a predicate that is true if the provided string equals ERROR. Try writing it using a method reference.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/C_Predicates.java:130
Methodcombine
(TotalAndDistinct other)
src/solutions/java/org/paumard/solutions/codeone2019/D_Streams/N_Challenges.java:91
Methodcombine
(Longest other)
src/solutions/java/org/paumard/solutions/codeone2019/D_Streams/N_Challenges.java:247
Methodcombine
(TotalAndDistinct other)
src/test/java/org/paumard/codeone2019/D_Streams/N_Challenges.java:83
MethodcompareTo
(Person other)
src/test/java/org/paumard/codeone2019/A_Lambdas/b_comparators/model/Person.java:55
Methodd_function01
Write a lambda expression that converts the given string to upper case. Try to write this lambda as a method reference.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/D_Functions.java:37
Methodd_function01
Write a lambda expression that converts the given string to upper case. Try to write this lambda as a method reference.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/D_Functions.java:38
Methodd_function02
Write a lambda expression that wraps the given string in parentheses.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/D_Functions.java:49
Methodd_function02
Write a lambda expression that wraps the given string in parentheses.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/D_Functions.java:51
Methodd_function03
Write a lambda expression that returns the length of the given String. Try to write this lambda as a method reference.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/D_Functions.java:61
Methodd_function03
Write a lambda expression that returns the length of the given String. Try to write this lambda as a method reference.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/D_Functions.java:64
Methodd_function04
Write a lambda expression that returns an empty String if the given string is null, and the given string otherwise.
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/D_Functions.java:74
Methodd_function04
Write a lambda expression that returns an empty String if the given string is null, and the given string otherwise.
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/D_Functions.java:78
Methodd_function05
Write a lambda expression that returns the length of the given String if it is not null, and 0 if the given String is null. Try using the a_lambdas wr
src/solutions/java/org/paumard/solutions/codeone2019/A_Lambdas/a_lambdas/D_Functions.java:89
Methodd_function05
Write a lambda expression that returns the length of the given String if it is not null, and 0 if the given String is null. Try using the a_lambdas wr
src/test/java/org/paumard/codeone2019/A_Lambdas/a_lambdas/D_Functions.java:94
next →1–100 of 319, ranked by callers