and lists of pairs. Also perfoms the reverse
operation using the DataManager.
- Author:
- petrov
|
Constructor Summary |
private |
Converter()
Creates a new instance of Converter |
|
Method Summary |
static org.jbudget.Core.Account |
getAccount(Pair<java.lang.Integer,java.lang.String> accountInfo)
Returns the account object represented by a given Pair |
static java.util.List<org.jbudget.Core.Account> |
getAccounts(java.util.List<Pair<java.lang.Integer,java.lang.String>> pairs)
Converts a list of pairs into a list of accounts |
static org.jbudget.Core.Budget |
getBudget(Pair<java.lang.Integer,java.lang.String> budgetInfo)
Returns the budget object represented by a given Pair |
static java.util.List<org.jbudget.Core.Budget> |
getBudgets(java.util.List<Pair<java.lang.Integer,java.lang.String>> pairs)
Converts a list of pairs into a list of budgets |
static Pair<java.lang.Integer,java.lang.String> |
getInfo(org.jbudget.Core.Account account)
Returns a Pair representing a given account |
static Pair<java.lang.Integer,java.lang.String> |
getInfo(org.jbudget.Core.Budget budget)
Returns a Pair representing a given budget |
static java.util.List<Pair<java.lang.Integer,java.lang.String>> |
getInfo(java.util.List<org.jbudget.Core.Account> accounts)
Converts a list of objects into a list of pairs |
static java.util.List<Pair<java.lang.Integer,java.lang.String>> |
getPairsBudgets(java.util.List<org.jbudget.Core.Budget> budgets)
Converts a list of objects into a list of pairs |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Converter
private Converter()
- Creates a new instance of Converter
getInfo
public static Pair<java.lang.Integer,java.lang.String> getInfo(org.jbudget.Core.Account account)
- Returns a Pair representing a given account
getAccount
public static org.jbudget.Core.Account getAccount(Pair<java.lang.Integer,java.lang.String> accountInfo)
- Returns the account object represented by a given Pair
getInfo
public static Pair<java.lang.Integer,java.lang.String> getInfo(org.jbudget.Core.Budget budget)
- Returns a Pair representing a given budget
getBudget
public static org.jbudget.Core.Budget getBudget(Pair<java.lang.Integer,java.lang.String> budgetInfo)
- Returns the budget object represented by a given Pair
getInfo
public static java.util.List<Pair<java.lang.Integer,java.lang.String>> getInfo(java.util.List<org.jbudget.Core.Account> accounts)
- Converts a list of objects into a list of pairs
getAccounts
public static java.util.List<org.jbudget.Core.Account> getAccounts(java.util.List<Pair<java.lang.Integer,java.lang.String>> pairs)
- Converts a list of pairs into a list of accounts
getPairsBudgets
public static java.util.List<Pair<java.lang.Integer,java.lang.String>> getPairsBudgets(java.util.List<org.jbudget.Core.Budget> budgets)
- Converts a list of objects into a list of pairs
getBudgets
public static java.util.List<org.jbudget.Core.Budget> getBudgets(java.util.List<Pair<java.lang.Integer,java.lang.String>> pairs)
- Converts a list of pairs into a list of budgets