X-Git-Url: https://git.ktnx.net/?p=mobile-ledger-staging.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fmodel%2FCurrency.java;h=f332f001667cf1e83cff65571271dcb141847c2c;hp=28e6d03e9fe6c2007c1b4ece489472c027ab030b;hb=20c03b7a5eb152d42fbbe9ecbaae27530563b398;hpb=600d64f8daa770afc8f1a809e541573bf317033f diff --git a/app/src/main/java/net/ktnx/mobileledger/model/Currency.java b/app/src/main/java/net/ktnx/mobileledger/model/Currency.java index 28e6d03e..f332f001 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/Currency.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/Currency.java @@ -1,5 +1,5 @@ /* - * Copyright © 2019 Damyan Ivanov. + * Copyright © 2020 Damyan Ivanov. * This file is part of MoLe. * MoLe is free software: you can distribute it and/or modify it * under the term of the GNU General Public License as published by @@ -42,7 +42,7 @@ public class Currency { (oldItem.hasGap == newItem.hasGap); } }; - private int id; + private final int id; private String name; private Position position; private boolean hasGap; @@ -120,9 +120,7 @@ public class Currency { } public enum Position { before(-1), after(1), unknown(0), none(-2); - private int value; Position(int value) { - this.value = value; } static Position valueOf(int value) { switch (value) {