src/main/java/seedu/insurancepal/logic/commands/ClaimCommand.java
/**
     * Creates and returns a {@code Claim} with the details of {@code claimToEdit}
     * edited with {@code editClaimDescriptor}.
     *
     */
Creates and returns a  Claim with the details of  claimToEdit
edited with  editClaimDescriptor.
Creates and returns a Claim with the details of claimToEdit edited with editClaimDescriptor .
public Claim createEditedClaim(Claim claimToEdit, EditClaimDescriptor editClaimDescriptor) {
        requireAllNonNull(claimToEdit, editClaimDescriptor);
        assert(claimToEdit.getTitle().equals(editClaimDescriptor.getTitle()));
        Description updatedDescription = editClaimDescriptor.getDescription().orElse(claimToEdit.getDescription());
        Status updatedStatus = editClaimDescriptor.getStatus().orElse(claimToEdit.getStatus());
        return new Claim(claimToEdit.getTitle(), updatedDescription, updatedStatus);
    }
public Claim createEditedClaim ( Claim claimToEdit , EditClaimDescriptor editClaimDescriptor ) { requireAllNonNull ( claimToEdit , editClaimDescriptor ) ; assert ( claimToEdit . getTitle ( ) . equals ( editClaimDescriptor . getTitle ( ) ) ) ; Description updatedDescription = editClaimDescriptor . getDescription ( ) . orElse ( claimToEdit . getDescription ( ) ) ; Status updatedStatus = editClaimDescriptor . getStatus ( ) . orElse ( claimToEdit . getStatus ( ) ) ; return new Claim ( claimToEdit . getTitle ( ) , updatedDescription , updatedStatus ) ; }
Creates and returns a {@code Claim} with the details of {@code claimToEdit}
 edited with {@code editClaimDescriptor}.
Creates and returns a { @code Claim } with the details of { @code claimToEdit } edited with { @code editClaimDescriptor } .