18 package org.turro.financials.treasury.m111;
20 import java.util.HashMap;
22 import org.turro.jpa.Dao;
23 import org.turro.math.Round;
24 import org.turro.util.CompareUtil;
30 public class ModelEntry implements Comparable<ModelEntry> {
34 private double perCent = 0.0;
35 private Map<Long, EntryContract> contracts =
new HashMap<Long, EntryContract>();
50 total += ec.getTaxable();
67 total += ec.getRetention();
76 public void addValue(
long contractId, String contractName,
long documentId,
double retention,
double taxable) {
80 contracts.put(contractId, ec);
90 result = CompareUtil.compare(perCent, o.perCent);
void addDocument(long documentId, double retention, double taxable)
Map< Long, EntryContract > getContracts()
int compareTo(ModelEntry o)
ModelEntry(ModelSet set, ModelType type, double perCent)
void addValue(long contractId, String contractName, long documentId, double retention, double taxable)
Round decimals(int digits)