@Override public int size() { long size; if (type == null && StringUtils.isEmpty(searchText)) { size = getSoftwareModuleManagement().count(); } else { size = getSoftwareModuleManagement().countByTextAndType(searchText, type); } if (size > Integer.MAX_VALUE) { size = Integer.MAX_VALUE; } return (int) size; }
@Override public int size() { long size; if (type == null && StringUtils.isEmpty(searchText)) { size = getSoftwareManagementService().count(); } else { size = getSoftwareManagementService().countByTextAndType(searchText, type); } if (size > Integer.MAX_VALUE) { size = Integer.MAX_VALUE; } return (int) size; }
@Override public int size() { long size; if (type == null && StringUtils.isEmpty(searchText)) { size = getSoftwareModuleManagement().count(); } else { size = getSoftwareModuleManagement().countByTextAndType(searchText, type); } if (size > Integer.MAX_VALUE) { size = Integer.MAX_VALUE; } return (int) size; }
@Override public int size() { long size; if (type == null && StringUtils.isEmpty(searchText)) { size = getSoftwareManagementService().count(); } else { size = getSoftwareManagementService().countByTextAndType(searchText, type); } if (size > Integer.MAX_VALUE) { size = Integer.MAX_VALUE; } return (int) size; }