BrightSide Workbench Full Report + Source Code
org.turro.actor.ContactEntityCheck Class Reference

Public Member Functions

 ContactEntityCheck (String actor, IContact contact, IElephantEntity entity)
 
String getCompared ()
 
IContact getContact ()
 
IElephantEntity getEntity ()
 
boolean check ()
 

Detailed Description

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

Definition at line 28 of file ContactEntityCheck.java.

Constructor & Destructor Documentation

◆ ContactEntityCheck()

org.turro.actor.ContactEntityCheck.ContactEntityCheck ( String  actor,
IContact  contact,
IElephantEntity  entity 
)

Definition at line 34 of file ContactEntityCheck.java.

34  {
35  this.compared = actor;
36  this.contact = contact;
37  this.entity = entity;
38  }

Member Function Documentation

◆ check()

boolean org.turro.actor.ContactEntityCheck.check ( )

Definition at line 52 of file ContactEntityCheck.java.

52  {
53  if(entity == null || entity.isEmpty()) {
54  return Actors.isActor(contact, compared);
55  }
56  return entity.isActor(contact, compared);
57  }
boolean isActor(String actor)
Here is the call graph for this function:

◆ getCompared()

String org.turro.actor.ContactEntityCheck.getCompared ( )

Definition at line 40 of file ContactEntityCheck.java.

40  {
41  return compared;
42  }

◆ getContact()

IContact org.turro.actor.ContactEntityCheck.getContact ( )

Definition at line 44 of file ContactEntityCheck.java.

44  {
45  return contact;
46  }

◆ getEntity()

IElephantEntity org.turro.actor.ContactEntityCheck.getEntity ( )

Definition at line 48 of file ContactEntityCheck.java.

48  {
49  return entity;
50  }

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