class LicenseNameWithTextUtils {

    public static boolean licenseNameWithTextEquals(LicenseNameWithText lnwt1, LicenseNameWithText lnwt2) {
        return nullToEmpty(lnwt1.getLicenseName()).trim().equals(nullToEmpty(lnwt2.getLicenseName()).trim())
                && nullToEmpty(lnwt1.getLicenseText()).trim().equals(nullToEmpty(lnwt2.getLicenseText()).trim())
                && nullToEmpty(lnwt1.getAcknowledgements()).trim().equals(nullToEmpty(lnwt2.getAcknowledgements()).trim());
    }

}