mergeOid function

String mergeOid(
  1. String oid1,
  2. String oid2
)

Creates a new OID based two OIDs.

To shorten the result OID, we retrieve the substring of oid1 and oid2 and concatenate them together. Of course, there might be conflict but the chance is so low that we can ignore (like OID generator),

Implementation

String mergeOid(String oid1, String oid2)
=> "${oid1.substring(0, 12)}${oid2.substring(0, 12)}";