-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added Jordan's lesson 05 content (#181)
- Loading branch information
1 parent
7056a1f
commit db22527
Showing
2 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
.../main/java/main/java/com/codedifferently/lesson5/dataprovider/JordanEldridgeProvider.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package main.java.com.codedifferently.lesson5.dataprovider; | ||
|
||
import com.codedifferently.lesson5.dataprovider.DataProvider; | ||
import java.util.Map; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class JordanEldridgeProvider extends DataProvider { | ||
public String getProviderName() { | ||
return "JordanEldridge"; | ||
} | ||
|
||
public Map<String, Class> getColumnTypeByName() { | ||
return Map.of( | ||
"column1", Float.class, | ||
"column2", Integer.class, | ||
"column3", Short.class, | ||
"column4", Long.class, | ||
"column5", Boolean.class, | ||
"column6", String.class, | ||
"column7", Double.class); | ||
} | ||
} |
92 changes: 92 additions & 0 deletions
92
lesson_05/types/types_app/src/main/resources/data/jordaneldridge.json
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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
[ | ||
{ | ||
"column1": "3.19564876158796E307", | ||
"column2": "993788168", | ||
"column3": "14127", | ||
"column4": "8775660536354614272", | ||
"column5": "false", | ||
"column6": "qz076r", | ||
"column7": "2.0511124E38" | ||
}, | ||
{ | ||
"column1": "5.445680559242452E307", | ||
"column2": "1244871123", | ||
"column3": "12000", | ||
"column4": "1280908101837438208", | ||
"column5": "true", | ||
"column6": "u2i0v4", | ||
"column7": "3.2827187E38" | ||
}, | ||
{ | ||
"column1": "1.3497146401404408E308", | ||
"column2": "386713396", | ||
"column3": "8685", | ||
"column4": "3498404614607201280", | ||
"column5": "false", | ||
"column6": "v4g321j", | ||
"column7": "7.67141E36" | ||
}, | ||
{ | ||
"column1": "4.645922497385575E306", | ||
"column2": "287054228", | ||
"column3": "26526", | ||
"column4": "8571894840677920768", | ||
"column5": "false", | ||
"column6": "dvxnhuz", | ||
"column7": "1.9505395E38" | ||
}, | ||
{ | ||
"column1": "1.7462809159702546E308", | ||
"column2": "1553681108", | ||
"column3": "10896", | ||
"column4": "5434753919692052480", | ||
"column5": "false", | ||
"column6": "0qbi8w", | ||
"column7": "2.7714742E38" | ||
}, | ||
{ | ||
"column1": "6.639116944495583E307", | ||
"column2": "1546240200", | ||
"column3": "32592", | ||
"column4": "2285471782732891136", | ||
"column5": "true", | ||
"column6": "e436w", | ||
"column7": "2.5541789E38" | ||
}, | ||
{ | ||
"column1": "1.1033271997457126E308", | ||
"column2": "754480096", | ||
"column3": "15641", | ||
"column4": "7868193453281231872", | ||
"column5": "false", | ||
"column6": "wnv2iafgmk5", | ||
"column7": "2.7853026E38" | ||
}, | ||
{ | ||
"column1": "1.2428400230852926E308", | ||
"column2": "148045182", | ||
"column3": "17372", | ||
"column4": "5940412393193286656", | ||
"column5": "false", | ||
"column6": "rbcyqzpt", | ||
"column7": "2.2388314E38" | ||
}, | ||
{ | ||
"column1": "5.23134804522623E305", | ||
"column2": "1767590343", | ||
"column3": "24161", | ||
"column4": "1645694715825707264", | ||
"column5": "true", | ||
"column6": "fy0c5q", | ||
"column7": "1.0828151E38" | ||
}, | ||
{ | ||
"column1": "3.22427475811117E307", | ||
"column2": "1891023987", | ||
"column3": "6258", | ||
"column4": "570454203124154112", | ||
"column5": "true", | ||
"column6": "hckol35a", | ||
"column7": "2.4839342E38" | ||
} | ||
] |