19 package org.turro.plugin.contacts;
21 import org.turro.string.Strings;
29 private static final String ID_SEPARATOR =
"##";
31 private final String entityId;
32 private final long memberId;
35 this.entityId = entityId;
36 this.memberId = memberId;
40 return entityId + ID_SEPARATOR + Long.toString(memberId);
52 if(!Strings.isBlank(
id)) {
53 String parts[] =
id.split(ID_SEPARATOR);
54 if(parts.length == 2) {
55 return new CompoundId(parts[0], Long.valueOf(parts[1]));
66 if(
object instanceof String) {
67 return !Strings.isBlank((String)
object) && ((String)
object).matches(
"[^#]*##[0-9]+");
68 }
else if(
object instanceof
IContact) {