◆ assignDossier()
void org.turro.dossier.entity.WorthDefinition.assignDossier |
( |
Dossier |
dossier | ) |
|
◆ entityId()
Object org.turro.dossier.entity.WorthDefinition.entityId |
( |
| ) |
|
◆ getAssignedDossier()
Dossier org.turro.dossier.entity.WorthDefinition.getAssignedDossier |
( |
| ) |
|
◆ getCategory()
Category org.turro.dossier.entity.WorthDefinition.getCategory |
( |
| ) |
|
◆ getColors()
String org.turro.dossier.entity.WorthDefinition.getColors |
( |
| ) |
|
◆ getDescription()
String org.turro.dossier.entity.WorthDefinition.getDescription |
( |
| ) |
|
◆ getDossier()
Dossier org.turro.dossier.entity.WorthDefinition.getDossier |
( |
| ) |
|
◆ getGrouping()
String org.turro.dossier.entity.WorthDefinition.getGrouping |
( |
| ) |
|
◆ getId()
Long org.turro.dossier.entity.WorthDefinition.getId |
( |
| ) |
|
◆ getPairValues()
List<WorthPair> org.turro.dossier.entity.WorthDefinition.getPairValues |
( |
| ) |
|
Definition at line 194 of file WorthDefinition.java.
195 List<WorthPair> list =
new ArrayList<>();
196 String[] sa = possibleValues.split(
",");
197 String[] co = colors.split(
",");
198 if(sa.length == co.length) {
199 for(
int i = 0; i < sa.length; i++) {
200 list.add(
new WorthPair((Double) ObjectString.parseString(sa[i], Double.class,
true), co[i]));
◆ getPossibleValues()
String org.turro.dossier.entity.WorthDefinition.getPossibleValues |
( |
| ) |
|
◆ getRangeResult()
WorthPair org.turro.dossier.entity.WorthDefinition.getRangeResult |
( |
| ) |
|
Definition at line 167 of file WorthDefinition.java.
171 for(WorthPair wp :
set) {
172 if(wp.getValue() >= avg) {
Set< WorthPair > getRangeValues()
◆ getRangeValues()
Set<WorthPair> org.turro.dossier.entity.WorthDefinition.getRangeValues |
( |
| ) |
|
Definition at line 206 of file WorthDefinition.java.
207 TreeSet<WorthPair>
set =
new TreeSet<>();
210 WorthPair prev =
null;
211 for(WorthPair wp : pairs) {
213 diff = diff ==
null ? wp.getValue() - prev.getValue() : Math.min(wp.getValue() - prev.getValue(), diff);
217 for(WorthPair wp : pairs) {
218 set.add(
new WorthPair(wp.getValue() + (diff / 2.0), wp.getColor()));
List< WorthPair > getPairValues()
◆ getTitle()
String org.turro.dossier.entity.WorthDefinition.getTitle |
( |
| ) |
|
◆ getWorthAvg()
Double org.turro.dossier.entity.WorthDefinition.getWorthAvg |
( |
| ) |
|
Definition at line 156 of file WorthDefinition.java.
160 total += v.getValue();
List< WorthValue > getWorthValues()
◆ getWorthTotal()
double org.turro.dossier.entity.WorthDefinition.getWorthTotal |
( |
| ) |
|
◆ getWorthValues()
List<WorthValue> org.turro.dossier.entity.WorthDefinition.getWorthValues |
( |
| ) |
|
Definition at line 144 of file WorthDefinition.java.
145 if(_values ==
null) {
146 _values =
new ArrayList<>();
147 for(WorthValue v : _dossier.
getWorths()) {
148 if(Objects.equals(v.getWorthDefinition().getId(),
id)) {
Set< WorthValue > getWorths()
◆ isEmpty()
boolean org.turro.dossier.entity.WorthDefinition.isEmpty |
( |
| ) |
|
◆ setCategory()
void org.turro.dossier.entity.WorthDefinition.setCategory |
( |
Category |
category | ) |
|
◆ setColors()
void org.turro.dossier.entity.WorthDefinition.setColors |
( |
String |
colors | ) |
|
◆ setDescription()
void org.turro.dossier.entity.WorthDefinition.setDescription |
( |
String |
description | ) |
|
◆ setDossier()
void org.turro.dossier.entity.WorthDefinition.setDossier |
( |
Dossier |
_dossier | ) |
|
◆ setGrouping()
void org.turro.dossier.entity.WorthDefinition.setGrouping |
( |
String |
grouping | ) |
|
◆ setId()
void org.turro.dossier.entity.WorthDefinition.setId |
( |
Long |
id | ) |
|
◆ setPossibleValues()
void org.turro.dossier.entity.WorthDefinition.setPossibleValues |
( |
String |
possibleValues | ) |
|
◆ setTitle()
void org.turro.dossier.entity.WorthDefinition.setTitle |
( |
String |
title | ) |
|
The documentation for this class was generated from the following file: