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

Classes

enum  DuplicatedType
 

Public Member Functions

 Duplicated (DuplicatedType type, String title, String value)
 
void setConsequence (String consequence)
 
void setContacts (Collection< String > contacts)
 
DuplicatedType getType ()
 
String getIcon ()
 
String getTitle ()
 
String getValue ()
 
String getConsequence ()
 
Set< String > getContacts ()
 
int compareTo (Duplicated o)
 

Detailed Description

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

Definition at line 30 of file Duplicated.java.

Constructor & Destructor Documentation

◆ Duplicated()

org.turro.contacts.duplicates.Duplicated.Duplicated ( DuplicatedType  type,
String  title,
String  value 
)

Definition at line 40 of file Duplicated.java.

40  {
41  this.type = type;
42  this.title = title;
43  this.value = value;
44  }

Member Function Documentation

◆ compareTo()

int org.turro.contacts.duplicates.Duplicated.compareTo ( Duplicated  o)

Definition at line 83 of file Duplicated.java.

83  {
84  return Comparison.ascendant()
85  .compare(type, o.type)
86  .compare(title, o.title)
87  .compare(value, o.value)
88  .get();
89  }

◆ getConsequence()

String org.turro.contacts.duplicates.Duplicated.getConsequence ( )

Definition at line 74 of file Duplicated.java.

74  {
75  return consequence;
76  }

◆ getContacts()

Set<String> org.turro.contacts.duplicates.Duplicated.getContacts ( )

Definition at line 78 of file Duplicated.java.

78  {
79  return contacts;
80  }

◆ getIcon()

String org.turro.contacts.duplicates.Duplicated.getIcon ( )

Definition at line 58 of file Duplicated.java.

58  {
59  return switch(type) {
60  case STOPPER -> "hand paper red";
61  case WARNING -> "exclamation triangle orange";
62  case SAFE -> "copy outline teal";
63  };
64  }

◆ getTitle()

String org.turro.contacts.duplicates.Duplicated.getTitle ( )

Definition at line 66 of file Duplicated.java.

66  {
67  return title;
68  }

◆ getType()

DuplicatedType org.turro.contacts.duplicates.Duplicated.getType ( )

Definition at line 54 of file Duplicated.java.

54  {
55  return type;
56  }

◆ getValue()

String org.turro.contacts.duplicates.Duplicated.getValue ( )

Definition at line 70 of file Duplicated.java.

70  {
71  return value;
72  }

◆ setConsequence()

void org.turro.contacts.duplicates.Duplicated.setConsequence ( String  consequence)

Definition at line 46 of file Duplicated.java.

46  {
47  this.consequence = consequence;
48  }

◆ setContacts()

void org.turro.contacts.duplicates.Duplicated.setContacts ( Collection< String >  contacts)

Definition at line 50 of file Duplicated.java.

50  {
51  this.contacts.addAll(contacts);
52  }

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