BrightSide Workbench Full Report + Source Code
org.turro.plugin.contacts.CompoundId Class Reference

Public Member Functions

 CompoundId (String entityId, long memberId)
 
String stringify ()
 
String getEntityId ()
 
long getMemberId ()
 

Static Public Member Functions

static CompoundId from (String id)
 
static boolean isOutsiderId (String id)
 
static boolean isOutsider (Object object)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file CompoundId.java.

Constructor & Destructor Documentation

◆ CompoundId()

org.turro.plugin.contacts.CompoundId.CompoundId ( String  entityId,
long  memberId 
)

Definition at line 34 of file CompoundId.java.

34  {
35  this.entityId = entityId;
36  this.memberId = memberId;
37  }
Here is the caller graph for this function:

Member Function Documentation

◆ from()

static CompoundId org.turro.plugin.contacts.CompoundId.from ( String  id)
static

Definition at line 51 of file CompoundId.java.

51  {
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]));
56  }
57  }
58  return null;
59  }
CompoundId(String entityId, long memberId)
Definition: CompoundId.java:34
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEntityId()

String org.turro.plugin.contacts.CompoundId.getEntityId ( )

Definition at line 43 of file CompoundId.java.

43  {
44  return entityId;
45  }
Here is the caller graph for this function:

◆ getMemberId()

long org.turro.plugin.contacts.CompoundId.getMemberId ( )

Definition at line 47 of file CompoundId.java.

47  {
48  return memberId;
49  }
Here is the caller graph for this function:

◆ isOutsider()

static boolean org.turro.plugin.contacts.CompoundId.isOutsider ( Object  object)
static

Definition at line 65 of file CompoundId.java.

65  {
66  if(object instanceof String) {
67  return !Strings.isBlank((String) object) && ((String) object).matches("[^#]*##[0-9]+");
68  } else if(object instanceof IContact) {
69  return ((IContact) object).isOutsider();
70  }
71  return false;
72  }
static boolean isOutsider(Object object)
Definition: CompoundId.java:65
Here is the caller graph for this function:

◆ isOutsiderId()

static boolean org.turro.plugin.contacts.CompoundId.isOutsiderId ( String  id)
static

Definition at line 61 of file CompoundId.java.

61  {
62  return isOutsider(id);
63  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stringify()

String org.turro.plugin.contacts.CompoundId.stringify ( )

Definition at line 39 of file CompoundId.java.

39  {
40  return entityId + ID_SEPARATOR + Long.toString(memberId);
41  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: