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,32 @@
package net.sf.jasperreports.engine.fill;
class JRByteCountIncrementer extends JRAbstractExtendedIncrementer {
private static JRByteCountIncrementer mainInstance = new JRByteCountIncrementer();
public static JRByteCountIncrementer getInstance() {
return mainInstance;
}
public Object increment(JRCalculable variable, Object expressionValue, AbstractValueProvider valueProvider) {
Number value = (Number)variable.getIncrementedValue();
if (value == null || variable.isInitialized())
value = JRByteIncrementerFactory.ZERO;
if (expressionValue == null)
return value;
return new Byte((byte)(value.byteValue() + 1));
}
public Object combine(JRCalculable calculable, JRCalculable calculableValue, AbstractValueProvider valueProvider) {
Number value = (Number)calculable.getIncrementedValue();
Number combineValue = (Number)calculableValue.getValue();
if (value == null || calculable.isInitialized())
value = JRByteIncrementerFactory.ZERO;
if (combineValue == null)
return value;
return new Byte((byte)(value.byteValue() + combineValue.byteValue()));
}
public Object initialValue() {
return JRByteIncrementerFactory.ZERO;
}
}