@Override public String getValue(ProfileFilterRecordDto item) { return item.getEndpointProfileSchemaVersion() != null ? item.getEndpointProfileSchemaVersion() + "" : ""; } }, 60);
@Override public int compareTo(ProfileFilterRecordDto profileFilterRecordDto) { int endpointProfileShemaVersion = getEndpointProfileSchemaVersion() != null ? getEndpointProfileSchemaVersion() : -1; int otherEndpointProfileShemaVersion = profileFilterRecordDto.getEndpointProfileSchemaVersion() != null ? profileFilterRecordDto.getEndpointProfileSchemaVersion() : -1; int result = endpointProfileShemaVersion - otherEndpointProfileShemaVersion; if (result == 0) { int serverProfileShemaVersion = getServerProfileSchemaVersion() != null ? getServerProfileSchemaVersion() : -1; int otherServerProfileShemaVersion = profileFilterRecordDto.getServerProfileSchemaVersion() != null ? profileFilterRecordDto.getServerProfileSchemaVersion() : -1; result = serverProfileShemaVersion - otherServerProfileShemaVersion; } return result; }
Integer versionEnd = record.getEndpointProfileSchemaVersion(); Integer versionSer = record.getServerProfileSchemaVersion(); String endpointProfileVersion = versionEnd != null ? versionEnd.intValue() + "" : ""; ProfileFilterDto inactiveStruct = createInactiveStruct(); inactiveStruct.setEndpointProfileSchemaId(record.getEndpointProfileSchemaId()); inactiveStruct.setEndpointProfileSchemaVersion(record.getEndpointProfileSchemaVersion()); inactiveStruct.setServerProfileSchemaId(record.getServerProfileSchemaId()); inactiveStruct.setServerProfileSchemaVersion(record.getServerProfileSchemaVersion());