Class Sum
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingCollection<Object>
ch.tocco.nice2.optional.qualification.impl.drools.facts.Sum
- All Implemented Interfaces:
Iterable<Object>
,Collection<Object>
A helper class to aggregate a collection of
NumberContainer
s
during drools evaluation.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable BigDecimal
average
(MathContext mctx) delegate()
getCompensatedPointsFromCutoff
(BigDecimal cutoff, Double compensation) getCompensatedPointsFromCutoff
(BigDecimal cutoff, Double compensation, GradeComparisonHelper comparisonHelper) getCompensatedPointsFromCutoff
(BigDecimal cutoff, Double compensation, GradeComparisonHelper.ComparisonType comparisonType) getCompensatedValueFromCutoff
(@Nullable BigDecimal value, BigDecimal cutoff, Double compensation) getCompensatedValueFromCutoff
(@Nullable BigDecimal value, BigDecimal cutoff, Double compensation, GradeComparisonHelper comparisonHelper) getCompensatedValueFromCutoff
(@Nullable BigDecimal value, BigDecimal cutoff, Double compensation, GradeComparisonHelper.ComparisonType comparisonType) getPointsFromCutoff
(BigDecimal cutoff) getPointsFromCutoff
(BigDecimal cutoff, GradeComparisonHelper comparisonHelper) getPointsFromCutoff
(BigDecimal cutoff, GradeComparisonHelper.ComparisonType comparisonType) @Nullable BigDecimal
getValue()
getWeightedPointsFromCutoff
(BigDecimal cutoff, GradeComparisonHelper comparisonHelper) getWeightedPointsFromCutoff
(BigDecimal cutoff, GradeComparisonHelper.ComparisonType comparisonType) @Nullable BigDecimal
toString()
@Nullable BigDecimal
weightedAverage
(MathContext mctx) Methods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
Sum
public Sum()
-
-
Method Details
-
toString
- Overrides:
toString
in classcom.google.common.collect.ForwardingObject
-
delegate
- Specified by:
delegate
in classcom.google.common.collect.ForwardingCollection<Object>
-
getValue
-
getWeightedValue
-
average
-
weightedAverage
-
getPointsFromCutoff
-
getPointsFromCutoff
-
getPointsFromCutoff
public BigDecimal getPointsFromCutoff(BigDecimal cutoff, GradeComparisonHelper.ComparisonType comparisonType) -
getWeightedPointsFromCutoff
-
getWeightedPointsFromCutoff
public BigDecimal getWeightedPointsFromCutoff(BigDecimal cutoff, GradeComparisonHelper comparisonHelper) -
getWeightedPointsFromCutoff
public BigDecimal getWeightedPointsFromCutoff(BigDecimal cutoff, GradeComparisonHelper.ComparisonType comparisonType) -
getCompensatedValueFromCutoff
public BigDecimal getCompensatedValueFromCutoff(@Nullable @Nullable BigDecimal value, BigDecimal cutoff, Double compensation) -
getCompensatedValueFromCutoff
public BigDecimal getCompensatedValueFromCutoff(@Nullable @Nullable BigDecimal value, BigDecimal cutoff, Double compensation, GradeComparisonHelper comparisonHelper) -
getCompensatedValueFromCutoff
public BigDecimal getCompensatedValueFromCutoff(@Nullable @Nullable BigDecimal value, BigDecimal cutoff, Double compensation, GradeComparisonHelper.ComparisonType comparisonType) -
getCompensatedPointsFromCutoff
-
getCompensatedPointsFromCutoff
public BigDecimal getCompensatedPointsFromCutoff(BigDecimal cutoff, Double compensation, GradeComparisonHelper comparisonHelper) -
getCompensatedPointsFromCutoff
public BigDecimal getCompensatedPointsFromCutoff(BigDecimal cutoff, Double compensation, GradeComparisonHelper.ComparisonType comparisonType)
-