| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
package org.homeunix.thecave.buddi.plugin.api.model.impl; |
| 5 | |
|
| 6 | |
import org.homeunix.thecave.buddi.model.AccountType; |
| 7 | |
import org.homeunix.thecave.buddi.plugin.api.model.ImmutableAccountType; |
| 8 | |
|
| 9 | |
public class ImmutableAccountTypeImpl extends ImmutableModelObjectImpl implements ImmutableAccountType { |
| 10 | |
|
| 11 | |
public ImmutableAccountTypeImpl(AccountType type) { |
| 12 | 0 | super(type); |
| 13 | 0 | } |
| 14 | |
|
| 15 | |
public AccountType getType(){ |
| 16 | 0 | return (AccountType) getRaw(); |
| 17 | |
} |
| 18 | |
|
| 19 | |
public String getName(){ |
| 20 | 0 | return getType().getName(); |
| 21 | |
} |
| 22 | |
|
| 23 | |
public boolean isCredit(){ |
| 24 | 0 | return getType().isCredit(); |
| 25 | |
} |
| 26 | |
|
| 27 | |
@Override |
| 28 | |
public String toString() { |
| 29 | 0 | return getName(); |
| 30 | |
} |
| 31 | |
} |