BrightSide Workbench Full Report + Source Code
org.turro.contacts.organigram.TargetArray Class Reference
Inheritance diagram for org.turro.contacts.organigram.TargetArray:
Collaboration diagram for org.turro.contacts.organigram.TargetArray:

Public Member Functions

 TargetArray ()
 
LastItem getLastItem ()
 
void setLastItem (LastItem lastItem)
 
boolean add (TargetItem e)
 
void add (int index, TargetItem e)
 
boolean remove (Object o)
 
EnumSet< RelationTypegetRelationTypes ()
 

Detailed Description

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

Definition at line 29 of file TargetArray.java.

Constructor & Destructor Documentation

◆ TargetArray()

org.turro.contacts.organigram.TargetArray.TargetArray ( )

Definition at line 35 of file TargetArray.java.

35  {
36  lastItem = LastItem.LI_NONE;
37  }

Member Function Documentation

◆ add() [1/2]

void org.turro.contacts.organigram.TargetArray.add ( int  index,
TargetItem  e 
)

Definition at line 59 of file TargetArray.java.

59  {
60  if(exists(e)) {
61  return;
62  }
63  super.add(index, e);
64  checkLastOperator();
65  }

◆ add() [2/2]

boolean org.turro.contacts.organigram.TargetArray.add ( TargetItem  e)

Definition at line 49 of file TargetArray.java.

49  {
50  if(exists(e)) {
51  return false;
52  }
53  boolean result = super.add(e);
54  checkLastOperator();
55  return result;
56  }

◆ getLastItem()

LastItem org.turro.contacts.organigram.TargetArray.getLastItem ( )

Definition at line 39 of file TargetArray.java.

39  {
40  checkLastOperator();
41  return lastItem;
42  }
Here is the caller graph for this function:

◆ getRelationTypes()

EnumSet<RelationType> org.turro.contacts.organigram.TargetArray.getRelationTypes ( )

Definition at line 74 of file TargetArray.java.

74  {
75  EnumSet<RelationType> es = EnumSet.noneOf(RelationType.class);
76  for(TargetItem ti : this) {
77  es.add(ti.getRelationType());
78  }
79  return es;
80  }
Here is the call graph for this function:

◆ remove()

boolean org.turro.contacts.organigram.TargetArray.remove ( Object  o)

Definition at line 68 of file TargetArray.java.

68  {
69  boolean result = super.remove(o);
70  checkLastOperator();
71  return result;
72  }

◆ setLastItem()

void org.turro.contacts.organigram.TargetArray.setLastItem ( LastItem  lastItem)

Definition at line 44 of file TargetArray.java.

44  {
45  this.lastItem = lastItem;
46  }

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