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
NumberContainers
during drools evaluation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable BigDecimalaverage(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 BigDecimalgetValue()getWeightedPointsFromCutoff(BigDecimal cutoff, GradeComparisonHelper comparisonHelper) getWeightedPointsFromCutoff(BigDecimal cutoff, GradeComparisonHelper.ComparisonType comparisonType) @Nullable BigDecimaltoString()@Nullable BigDecimalweightedAverage(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, toArrayMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
Sum
public Sum()
-
-
Method Details
-
toString
- Overrides:
toStringin classcom.google.common.collect.ForwardingObject
-
delegate
- Specified by:
delegatein 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)
-