diff --git a/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/KevinmasonProvider.java b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/KevinmasonProvider.java new file mode 100644 index 00000000..0f646fe8 --- /dev/null +++ b/lesson_05/types/types_app/src/main/java/com/codedifferently/lesson5/dataprovider/KevinmasonProvider.java @@ -0,0 +1,20 @@ +package com.codedifferently.lesson5.dataprovider; + +import java.util.Map; + +public class KevinmasonProvider extends DataProvider { + public String getProviderName() { + return "Kevinmason"; + } + + public Map getColumnTypeByName() { + return Map.of( + "column1", String.class, + "column2", Double.class, + "column3", Integer.class, + "column4", Float.class, + "column5", Long.class, + "column6", Boolean.class, + "column7", Short.class); + } +} diff --git a/lesson_05/types/types_app/src/main/resources/data/Kevinmason.json b/lesson_05/types/types_app/src/main/resources/data/Kevinmason.json new file mode 100644 index 00000000..fa86e69c --- /dev/null +++ b/lesson_05/types/types_app/src/main/resources/data/Kevinmason.json @@ -0,0 +1,92 @@ +[ + { + "column1": "vl14o63", + "column2": "6.192688963895361E307", + "column3": "32485", + "column4": "1.969467E38", + "column5": "8159452050034413568", + "column6": "false", + "column7": "1700023382" + }, + { + "column1": "ba680", + "column2": "1.3268618906774522E308", + "column3": "16150", + "column4": "2.3930893E38", + "column5": "4776696678756528128", + "column6": "false", + "column7": "1944140577" + }, + { + "column1": "ib290", + "column2": "1.4727737041973942E308", + "column3": "6381", + "column4": "1.0575983E38", + "column5": "9120755450736463872", + "column6": "false", + "column7": "19831719" + }, + { + "column1": "msyax0l3", + "column2": "9.121908554207262E307", + "column3": "31177", + "column4": "2.217538E37", + "column5": "5407026998817903616", + "column6": "false", + "column7": "1376738141" + }, + { + "column1": "kl7f5", + "column2": "8.077266800325483E307", + "column3": "10043", + "column4": "1.0617746E38", + "column5": "4257235196052973568", + "column6": "true", + "column7": "793143904" + }, + { + "column1": "rt4javb7", + "column2": "3.5156131813747774E307", + "column3": "17449", + "column4": "1.2193035E38", + "column5": "2214757266917535232", + "column6": "true", + "column7": "69695054" + }, + { + "column1": "dkip6ws4zunj", + "column2": "1.5460036152015816E308", + "column3": "588", + "column4": "3.2341635E38", + "column5": "8309989588954549248", + "column6": "false", + "column7": "946689151" + }, + { + "column1": "6ul9t", + "column2": "2.2691913915730543E307", + "column3": "29764", + "column4": "2.8249693E38", + "column5": "1229032446712712704", + "column6": "true", + "column7": "902522754" + }, + { + "column1": "pqhfsuen", + "column2": "6.297670262487899E307", + "column3": "23300", + "column4": "1.9435595E38", + "column5": "4390678054405952000", + "column6": "true", + "column7": "1558878637" + }, + { + "column1": "oc5yk8q20b", + "column2": "2.051885492446561E307", + "column3": "25512", + "column4": "4.694244E37", + "column5": "8955578872393007104", + "column6": "false", + "column7": "2073057991" + } +] \ No newline at end of file