this.hasGap = hasGap;
}
public static Currency loadByName(String name) {
- MobileLedgerProfile profile = Data.profile.getValue();
+ MobileLedgerProfile profile = Data.getProfile();
return profile.loadCurrencyByName(name);
}
- public int getId() {
- return id;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public Position getPosition() {
- return position;
- }
- public void setPosition(Position position) {
- this.position = position;
- }
- public boolean hasGap() {
- return hasGap;
- }
- public void setHasGap(boolean hasGap) {
- this.hasGap = hasGap;
- }
static public boolean equal(Currency left, Currency right) {
if (left == null) {
return right == null;
return leftName.equals(right);
}
}
+ public int getId() {
+ return id;
+ }
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public Position getPosition() {
+ return position;
+ }
+ public void setPosition(Position position) {
+ this.position = position;
+ }
+ public boolean hasGap() {
+ return hasGap;
+ }
+ public void setHasGap(boolean hasGap) {
+ this.hasGap = hasGap;
+ }
public enum Position {
before(-1), after(1), unknown(0), none(-2);
private int value;