Skip to content

Instantly share code, notes, and snippets.

View Kinae's full-sized avatar

Anthony Defraine Kinae

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AboutToPasteTabsWithCancel</key>
<true/>
<key>AboutToPasteTabsWithCancel_selection</key>
<integer>0</integer>
<key>AlternateMouseScroll</key>
<true/>
// sample 1 : DTO enum to business enum
return Customer.newCustomer()
.customerType(UEnum.map(CustomerType.class, customerDataPeriodicalDTO.getCustomerType()))
// sample 2 : Business enum to DTO
.map(it -> new ScheduleEnergyMonthlyPaymentVariation()
.withEnergyType(UEnum.map(EnergyTypeDTO.class, it.getEnergyType()))
// Sample 3 : String to a business Enum - NamedPeriodPrice is an interface, method .name() return a String.