- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 27 of file CompoundId.java.
◆ CompoundId()
org.turro.plugin.contacts.CompoundId.CompoundId |
( |
String |
entityId, |
|
|
long |
memberId |
|
) |
| |
Definition at line 34 of file CompoundId.java.
35 this.entityId = entityId;
36 this.memberId = memberId;
◆ from()
static CompoundId org.turro.plugin.contacts.CompoundId.from |
( |
String |
id | ) |
|
|
static |
Definition at line 51 of file CompoundId.java.
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]));
◆ getEntityId()
String org.turro.plugin.contacts.CompoundId.getEntityId |
( |
| ) |
|
◆ getMemberId()
long org.turro.plugin.contacts.CompoundId.getMemberId |
( |
| ) |
|
◆ isOutsider()
static boolean org.turro.plugin.contacts.CompoundId.isOutsider |
( |
Object |
object | ) |
|
|
static |
Definition at line 65 of file CompoundId.java.
66 if(
object instanceof String) {
67 return !Strings.isBlank((String)
object) && ((String)
object).matches(
"[^#]*##[0-9]+");
68 }
else if(
object instanceof IContact) {
◆ isOutsiderId()
static boolean org.turro.plugin.contacts.CompoundId.isOutsiderId |
( |
String |
id | ) |
|
|
static |
◆ stringify()
String org.turro.plugin.contacts.CompoundId.stringify |
( |
| ) |
|
Definition at line 39 of file CompoundId.java.
40 return entityId + ID_SEPARATOR + Long.toString(memberId);
The documentation for this class was generated from the following file: