X: NFT - Improve method protection
This commit is contained in:
@@ -84,7 +84,7 @@ public final class EvelynMissionControlImpl implements
|
|||||||
return new StatusIndexChart(chart, xAxis, yAxis, priceIndexSeries);
|
return new StatusIndexChart(chart, xAxis, yAxis, priceIndexSeries);
|
||||||
}
|
}
|
||||||
|
|
||||||
static double calculateYBound(List<EvelynStatusIndexPoint> history) {
|
private static double calculateYBound(List<EvelynStatusIndexPoint> history) {
|
||||||
BigDecimal maxAbsoluteValue = BigDecimal.ZERO;
|
BigDecimal maxAbsoluteValue = BigDecimal.ZERO;
|
||||||
for (EvelynStatusIndexPoint point : history) {
|
for (EvelynStatusIndexPoint point : history) {
|
||||||
maxAbsoluteValue = max(maxAbsoluteValue, point.evelynPriceIndex());
|
maxAbsoluteValue = max(maxAbsoluteValue, point.evelynPriceIndex());
|
||||||
@@ -99,7 +99,7 @@ public final class EvelynMissionControlImpl implements
|
|||||||
return bound == 0.0 ? EMPTY_Y_BOUND : bound;
|
return bound == 0.0 ? EMPTY_Y_BOUND : bound;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void refreshChart(
|
private static void refreshChart(
|
||||||
StatusIndexChart statusIndexChart,
|
StatusIndexChart statusIndexChart,
|
||||||
List<EvelynStatusIndexPoint> history
|
List<EvelynStatusIndexPoint> history
|
||||||
) {
|
) {
|
||||||
@@ -134,7 +134,7 @@ public final class EvelynMissionControlImpl implements
|
|||||||
updateAxisBounds(statusIndexChart, history);
|
updateAxisBounds(statusIndexChart, history);
|
||||||
}
|
}
|
||||||
|
|
||||||
static BigDecimal max(BigDecimal currentMaximum, BigDecimal candidate) {
|
private static BigDecimal max(BigDecimal currentMaximum, BigDecimal candidate) {
|
||||||
return currentMaximum.max(candidate.abs());
|
return currentMaximum.max(candidate.abs());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user