Back to project page SMSAlive.
The source code is released under:
Apache License
If you think the Android project SMSAlive listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.futuretech.app.smsalive.utils; /*from ww w. j a v a2 s . c o m*/ import com.futuretech.app.smsalive.Domain.models.AccountTransaction; import org.joda.time.DateTime; import org.joda.time.LocalDate; import java.util.Date; import java.util.HashMap; /** * Created by ironhulk on 2014/11/28. */ public class Factory { public static AccountTransaction buildAccountTransaction(HashMap<String,String> accountTransValues){ AccountTransaction ac = new AccountTransaction(); ac.setAccountNumber(accountTransValues.get("accountNumber")); ac.setAccountType(accountTransValues.get("accountType")); ac.setAccountBalance(Double.valueOf(accountTransValues.get("accountBalance"))); ac.setTransactionAmount(Double.valueOf(accountTransValues.get("transactionAmount"))); ac.setTransactionDate(new LocalDate(accountTransValues.get("transactionDate"))); ac.setTransactionPlace(accountTransValues.get("transactionPlace")); ac.setAccountType(accountTransValues.get("transactionType")); return ac; } }