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,21 @@
package net.sf.jasperreports.engine.fill;
class JRComparableLowestIncrementer extends JRAbstractExtendedIncrementer {
private static JRComparableLowestIncrementer mainInstance = new JRComparableLowestIncrementer();
public static JRComparableLowestIncrementer getInstance() {
return mainInstance;
}
public Object increment(JRCalculable variable, Object expressionValue, AbstractValueProvider valueProvider) {
Comparable value = (Comparable)variable.getIncrementedValue();
Comparable newValue = (Comparable)expressionValue;
if (value != null && !variable.isInitialized() && (newValue == null || value.compareTo(newValue) < 0))
newValue = value;
return newValue;
}
public Object initialValue() {
return null;
}
}