diff options
Diffstat (limited to 'sample-apps/src/main/java/org/onap/integration/actninterfacetools/sampleapp/mpiconverter/model/LtpId.java')
-rw-r--r-- | sample-apps/src/main/java/org/onap/integration/actninterfacetools/sampleapp/mpiconverter/model/LtpId.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sample-apps/src/main/java/org/onap/integration/actninterfacetools/sampleapp/mpiconverter/model/LtpId.java b/sample-apps/src/main/java/org/onap/integration/actninterfacetools/sampleapp/mpiconverter/model/LtpId.java index b526198..8d43e5b 100644 --- a/sample-apps/src/main/java/org/onap/integration/actninterfacetools/sampleapp/mpiconverter/model/LtpId.java +++ b/sample-apps/src/main/java/org/onap/integration/actninterfacetools/sampleapp/mpiconverter/model/LtpId.java @@ -37,8 +37,13 @@ public final class LtpId { } private LtpId(long number, String name) { + if(name.equals("MJI=")){ + this.name = "TUpJPQ=="; + }else{ + this.name = name; + } this.number = number; - this.name = name; + this.hasName = true; } @@ -49,6 +54,9 @@ public final class LtpId { public static LtpId ltpId(String string) { return new LtpId(UnsignedLongs.decode(string)); } + public static LtpId ltpId1(long number, String string) { + return new LtpId(number, string); + } public static LtpId ltpId(long number, String name) { return new LtpId(number, name); |