first commit

This commit is contained in:
2025-07-28 13:56:49 +05:30
commit e9eb805edb
3438 changed files with 520990 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package net.sf.jasperreports.engine.fill;
class JRByteAverageIncrementer extends JRAbstractExtendedIncrementer {
private static JRByteAverageIncrementer mainInstance = new JRByteAverageIncrementer();
public static JRByteAverageIncrementer getInstance() {
return mainInstance;
}
public Object increment(JRCalculable variable, Object expressionValue, AbstractValueProvider valueProvider) {
if (expressionValue == null) {
if (variable.isInitialized())
return null;
return variable.getValue();
}
Number countValue = (Number)valueProvider.getValue(variable.getHelperVariable((byte)0));
Number sumValue = (Number)valueProvider.getValue(variable.getHelperVariable((byte)1));
return new Byte((byte)(sumValue.byteValue() / countValue.byteValue()));
}
public Object initialValue() {
return JRByteIncrementerFactory.ZERO;
}
}