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

Commit ccf7b46

Browse files
committed
GP-47 Refactor
1 parent d5b19b9 commit ccf7b46

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

‎5-0-functional-programming/src/main/java/com/bobocode/lambda_math_functions/FunctionMap.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package com.bobocode.lambda_math_functions;
22

3+
import com.bobocode.util.ExerciseNotCompletedException;
4+
35
import java.util.HashMap;
46
import java.util.Map;
57
import java.util.function.Function;
6-
import com.bobocode.util.ExerciseNotCompletedException;
78

89
/**
910
* FunctionMap is an API that allows you to store and retrieve functions by string name. FunctionMap are stored in a

‎5-0-functional-programming/src/main/java/com/bobocode/lambda_math_functions/Functions.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.bobocode.lambda_math_functions;
22

3-
import com.bobocode.lambda_math_functions.FunctionMap;
4-
53
public class Functions {
64
/**
75
* A static factory method that creates an integer function map with basic functions:
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# <img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/image/logo_transparent_background.png" height=50/>Math functions exercise :muscle:
1+
# <img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/image/logo_transparent_background.png" height=50/>Math functions exercise 💪
22
Improve your lambda and method reference skills
33
### Task
44
**FunctionMap** is an API that allows you to store and retrieve math functions by string name. Your job is to implement the *todo* section of `Functions.java` class using **Lambda expressions and method reference**, so all tests in `FunctionsTest.java` should pass
55

6-
### Pre-conditions :heavy_exclamation_mark:
6+
### Pre-conditions
77
You're supposed to be familiar with Java 8
88

9-
### How to start :question:
9+
### How to start
1010
* Just clone the repository and start implementing the **todo** section, verify your changes by running tests
1111
* If you don't have enough knowledge about this domain, check out the [links below](#related-materials-information_source)
12-
* Don't worry if you got stuck, checkout the [exercise/completed](https://github.com/bobocode-projects/tdd-exercises/tree/exercise/completed/binary-search-tree) branch and see the final implementation
12+
* Don't worry if you got stuck, checkout the [exercise/completed](to do) branch and see the final implementation
1313

14-
### Related materials :information_source:
15-
* [Lambda tutorial](https://github.com/bobocode-projects/java-8-tutorial/tree/master/lambdas) <img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/image/logo_transparent_background.png" height=20/>
14+
### Related materials i️
15+
* [Lambda tutorial](to do) <img src="https://raw.githubusercontent.com/bobocode-projects/resources/master/image/logo_transparent_background.png" height=20/>
1616
* [State of lambda (JSR 335)](http://htmlpreview.github.io/?https://github.com/bobocode-projects/resources/blob/master/java8/lambda/sotl.html)
1717

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /