/* Ċ Ġ* ĠCopyright Ġ 2 0 1 8 ĠAr th ur ĠI van ets , Ġar th ur . iv an ets . l @ gmail . com Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ @ file : Jvm Name (" Character Mapping Utils ") Ċ Ċ package Ġcom . arth ur iv an ets . sample . domain . repositories . characters Ċ Ċ import Ġcom . arth ur iv an ets . commons . data . util . Response Ċ import Ġcom . arth ur iv an ets . sample . domain . repositories . util . to Domain Image Ċ import Ġcom . arth ur iv an ets . sample . domain . repositories . util . to Domain Urls Ċ import Ġcom . arth ur iv an ets . sample . domain . repositories . util . to Response Ċ import Ġcom . arth ur iv an ets . sample . domain . util . Data Character Ċ import Ġcom . arth ur iv an ets . sample . domain . util . Domain Character ĊĊ Ċ internal Ġfun ĠResponse < Data Character , ĠThrowable >. to Domain Character Response () Ġ: ĠResponse < Domain Character , ĠThrowable > Ġ{ ĊĠĠĠ Ġreturn Ġthis . to Response Ġ{ Ġit . to Domain Character () Ġ} Ċ } ĊĊ Ċ internal Ġfun ĠResponse < List < Data Character >, ĠThrowable >. to Domain Characters Response ( sort Items Ġ: ĠBoolean Ġ= Ġfalse ) Ġ: ĠResponse < List < Domain Character >, ĠThrowable > Ġ{ ĊĠĠĠ Ġreturn Ġthis . to Response Ġ{ Ġit . to Domain Characters ( sort Items ) Ġ} Ċ } ĊĊ Ċ internal Ġfun ĠList < Data Character >. to Domain Characters ( sort Ġ: ĠBoolean Ġ= Ġfalse ) Ġ: ĠList < Domain Character > Ġ{ ĊĠĠĠ Ġreturn Ġthis . map Ġ{ Ġit . to Domain Character () Ġ} ĊĠĠĠĠĠĠĠ Ġ. let Ġ{ Ġcharacters Ġ-> Ġ( if ( sort ) Ġcharacters . sorted By Ġ{ Ġit . id Ġ} Ġelse Ġcharacters ) Ġ} Ċ } ĊĊ Ċ internal Ġfun ĠData Character . to Domain Character () Ġ: ĠDomain Character Ġ{ ĊĠĠĠ Ġreturn ĠDomain Character ( ĊĠĠĠĠĠĠĠ Ġid Ġ= Ġthis . id , ĊĠĠĠĠĠĠĠ Ġname Ġ= Ġthis . name , ĊĠĠĠĠĠĠĠ Ġdescription Ġ= Ġthis . description , ĊĠĠĠĠĠĠĠ Ġmodification TimeIn Millis Ġ= Ġthis . modification TimeIn Millis , ĊĠĠĠĠĠĠĠ Ġthumbnail Ġ= Ġthis . thumbnail . to Domain Image (), ĊĠĠĠĠĠĠĠ Ġurls Ġ= Ġthis . urls . to Domain Urls () ĊĠĠĠ Ġ) Ċ }