package com.crm.rely.backend.util;

public class DefaultValueUtil {

    public static Integer defaultIfNullOrNonPositive(Integer value, int defaultValue) {
        return (value == null || value <= 0) ? defaultValue : value;
    }

    public static Long defaultIfNullOrNonPositive(Long value, long defaultValue) {
        return (value == null || value <= 0) ? defaultValue : value;
    }
}
