Skip to content

Commit

Permalink
InvestmentAllocation: all numbers in longs
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0ffrey committed May 29, 2015
1 parent 83342a0 commit 4ad1209
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -28,7 +28,7 @@ public class AssetClassAllocation extends AbstractPersistable {
private AssetClass assetClass; private AssetClass assetClass;


// Planning variables: changes during planning, between score calculations. // Planning variables: changes during planning, between score calculations.
private Integer quantityNanos; // In nano's (so multiplied by 10^9) private Long quantityNanos; // In nano's (so multiplied by 10^9)


public AssetClass getAssetClass() { public AssetClass getAssetClass() {
return assetClass; return assetClass;
Expand All @@ -39,11 +39,11 @@ public void setAssetClass(AssetClass assetClass) {
} }


@PlanningVariable(valueRangeProviderRefs = {"quantityNanosRange"}) @PlanningVariable(valueRangeProviderRefs = {"quantityNanosRange"})
public Integer getQuantityNanos() { public Long getQuantityNanos() {
return quantityNanos; return quantityNanos;
} }


public void setQuantityNanos(Integer quantityNanos) { public void setQuantityNanos(Long quantityNanos) {
this.quantityNanos = quantityNanos; this.quantityNanos = quantityNanos;
} }


Expand Down

0 comments on commit 4ad1209

Please sign in to comment.