BrightSide Workbench Full Report + Source Code
org.turro.skills.SkillRoot Class Reference

Public Member Functions

 SkillRoot (Skill skill)
 
 SkillRoot (String skill, SkillType type, long usage)
 
 SkillRoot (String skill, SkillType type, boolean validated, long usage)
 
String getSkill ()
 
SkillType getType ()
 
boolean isValidated ()
 
long getUsage ()
 
Skill getFor (String entityPath)
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 

Detailed Description

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

Definition at line 29 of file SkillRoot.java.

Constructor & Destructor Documentation

◆ SkillRoot() [1/3]

org.turro.skills.SkillRoot.SkillRoot ( Skill  skill)

Definition at line 36 of file SkillRoot.java.

36  {
37  this(skill.getSkill(), skill.getType(), skill.isValidated(), 0);
38  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SkillRoot() [2/3]

org.turro.skills.SkillRoot.SkillRoot ( String  skill,
SkillType  type,
long  usage 
)

Definition at line 40 of file SkillRoot.java.

40  {
41  this(skill, type, false, usage);
42  }

◆ SkillRoot() [3/3]

org.turro.skills.SkillRoot.SkillRoot ( String  skill,
SkillType  type,
boolean  validated,
long  usage 
)

Definition at line 44 of file SkillRoot.java.

44  {
45  this.skill = skill;
46  this.type = type;
47  this.validated = validated;
48  this.usage = usage;
49  }

Member Function Documentation

◆ equals()

boolean org.turro.skills.SkillRoot.equals ( Object  obj)

Definition at line 92 of file SkillRoot.java.

92  {
93  if (this == obj) {
94  return true;
95  }
96  if (obj == null) {
97  return false;
98  }
99  if (getClass() != obj.getClass()) {
100  return false;
101  }
102  final SkillRoot other = (SkillRoot) obj;
103  if (!Objects.equals(this.skill, other.skill)) {
104  return false;
105  }
106  if (this.type != other.type) {
107  return false;
108  }
109  return true;
110  }
Here is the call graph for this function:

◆ getFor()

Skill org.turro.skills.SkillRoot.getFor ( String  entityPath)

Definition at line 67 of file SkillRoot.java.

67  {
68  Skill s = new Skill();
69  s.setEntityPath(entityPath);
70  s.setSkill(skill);
71  s.setType(type);
72  s.setValidated(validated);
73  return s;
74  }
Here is the call graph for this function:

◆ getSkill()

String org.turro.skills.SkillRoot.getSkill ( )

Definition at line 51 of file SkillRoot.java.

51  {
52  return skill;
53  }

◆ getType()

SkillType org.turro.skills.SkillRoot.getType ( )

Definition at line 55 of file SkillRoot.java.

55  {
56  return type;
57  }

◆ getUsage()

long org.turro.skills.SkillRoot.getUsage ( )

Definition at line 63 of file SkillRoot.java.

63  {
64  return usage;
65  }

◆ hashCode()

int org.turro.skills.SkillRoot.hashCode ( )

Definition at line 84 of file SkillRoot.java.

84  {
85  int hash = 7;
86  hash = 37 * hash + Objects.hashCode(this.skill);
87  hash = 37 * hash + Objects.hashCode(this.type);
88  return hash;
89  }

◆ isValidated()

boolean org.turro.skills.SkillRoot.isValidated ( )

Definition at line 59 of file SkillRoot.java.

59  {
60  return validated;
61  }

◆ toString()

String org.turro.skills.SkillRoot.toString ( )

Definition at line 79 of file SkillRoot.java.

79  {
80  return skill;
81  }

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