BrightSide Workbench Full Report + Source Code
org.turro.erp.entity.AptitudeDegree Class Reference
Inheritance diagram for org.turro.erp.entity.AptitudeDegree:
Collaboration diagram for org.turro.erp.entity.AptitudeDegree:

Public Member Functions

double getCost ()
 
void setCost (double cost)
 
long getId ()
 
void setId (long id)
 
double getMarketPrice ()
 
void setMarketPrice (double marketPrice)
 
String getName ()
 
void setName (String name)
 
Aptitude getAptitude ()
 
void setAptitude (Aptitude aptitude)
 
int getOrdering ()
 
void setOrdering (int ordering)
 
double getPrice ()
 
void setPrice (double price)
 
boolean isEmpty ()
 
boolean isIn (Collection< AptitudeDegree > aptitudeDegrees)
 
String getFullName ()
 
String getFullDescription ()
 

Detailed Description

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

Definition at line 31 of file AptitudeDegree.java.

Member Function Documentation

◆ getAptitude()

Aptitude org.turro.erp.entity.AptitudeDegree.getAptitude ( )

Definition at line 79 of file AptitudeDegree.java.

79  {
80  return aptitude;
81  }

◆ getCost()

double org.turro.erp.entity.AptitudeDegree.getCost ( )

Definition at line 47 of file AptitudeDegree.java.

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

◆ getFullDescription()

String org.turro.erp.entity.AptitudeDegree.getFullDescription ( )

Definition at line 124 of file AptitudeDegree.java.

124  {
125  return getFullName() + " (" + DecimalFormats.format(cost) + "/" +
126  DecimalFormats.format(price) + ")";
127  }
Here is the call graph for this function:

◆ getFullName()

String org.turro.erp.entity.AptitudeDegree.getFullName ( )

Definition at line 119 of file AptitudeDegree.java.

119  {
120  return aptitude.getName() +
121  (!Strings.isEmpty(name) ? " " + name : "");
122  }
Here is the caller graph for this function:

◆ getId()

long org.turro.erp.entity.AptitudeDegree.getId ( )

Definition at line 55 of file AptitudeDegree.java.

55  {
56  return id;
57  }

◆ getMarketPrice()

double org.turro.erp.entity.AptitudeDegree.getMarketPrice ( )

Definition at line 63 of file AptitudeDegree.java.

63  {
64  return marketPrice;
65  }
Here is the caller graph for this function:

◆ getName()

String org.turro.erp.entity.AptitudeDegree.getName ( )

Definition at line 71 of file AptitudeDegree.java.

71  {
72  return name;
73  }

◆ getOrdering()

int org.turro.erp.entity.AptitudeDegree.getOrdering ( )

Definition at line 87 of file AptitudeDegree.java.

87  {
88  return ordering;
89  }

◆ getPrice()

double org.turro.erp.entity.AptitudeDegree.getPrice ( )

Definition at line 95 of file AptitudeDegree.java.

95  {
96  return price;
97  }
Here is the caller graph for this function:

◆ isEmpty()

boolean org.turro.erp.entity.AptitudeDegree.isEmpty ( )

Definition at line 105 of file AptitudeDegree.java.

105  {
106  return Strings.isBlank(name) || (ordering == 0 && (cost == 0.0 || price == 0.0));
107  }
Here is the caller graph for this function:

◆ isIn()

boolean org.turro.erp.entity.AptitudeDegree.isIn ( Collection< AptitudeDegree aptitudeDegrees)

Definition at line 109 of file AptitudeDegree.java.

109  {
110  for(AptitudeDegree o : aptitudeDegrees) {
111  if(CompareUtil.compare(name, o.getName()) == 0 &&
112  ordering <= o.ordering) {
113  return true;
114  }
115  }
116  return false;
117  }
Here is the caller graph for this function:

◆ setAptitude()

void org.turro.erp.entity.AptitudeDegree.setAptitude ( Aptitude  aptitude)

Definition at line 83 of file AptitudeDegree.java.

83  {
84  this.aptitude = aptitude;
85  }
Here is the caller graph for this function:

◆ setCost()

void org.turro.erp.entity.AptitudeDegree.setCost ( double  cost)

Definition at line 51 of file AptitudeDegree.java.

51  {
52  this.cost = cost;
53  }

◆ setId()

void org.turro.erp.entity.AptitudeDegree.setId ( long  id)

Definition at line 59 of file AptitudeDegree.java.

59  {
60  this.id = id;
61  }

◆ setMarketPrice()

void org.turro.erp.entity.AptitudeDegree.setMarketPrice ( double  marketPrice)

Definition at line 67 of file AptitudeDegree.java.

67  {
68  this.marketPrice = marketPrice;
69  }

◆ setName()

void org.turro.erp.entity.AptitudeDegree.setName ( String  name)

Definition at line 75 of file AptitudeDegree.java.

75  {
76  this.name = name;
77  }

◆ setOrdering()

void org.turro.erp.entity.AptitudeDegree.setOrdering ( int  ordering)

Definition at line 91 of file AptitudeDegree.java.

91  {
92  this.ordering = ordering;
93  }

◆ setPrice()

void org.turro.erp.entity.AptitudeDegree.setPrice ( double  price)

Definition at line 99 of file AptitudeDegree.java.

99  {
100  this.price = price;
101  }

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