здесь
Код: Выделить всё
AppointmentDetailsInfo appointmentDetails =(newAppointmentDetailsDTO !=null &&newAppointmentDetailsDTO.getData()!=null && newAppointmentDetailsDTO.getData().getAppointmentDetails()!=null) ?newAppointmentDetailsDTO.getData().getAppointmentDetails():null;
Код: Выделить всё
isNewPatient(gosDTO != null ? gosDTO .getIsNewPatient() ? 1 : 0 : null);
referredProviderName(gosDTO != null ? gosDTO .getReferredProviderName() : null);
isMobile(gosDTO != null ? gosDTO .getIsMobile() : null);
Подробнее здесь: https://stackoverflow.com/questions/787 ... on-in-java