The variables contact and address are currently of type URI. This makes the variables less versatile in terms of their usage. For example, URI variables could not be embedded easily in a QR code. Changing the variables to type String will make usage of them simpler.
Solution
In class DeRecIdentity, the type of contact and address variables should be updated to String as follows:
private final String contact;
private final String address;
Getters and setters for these variables should be changed accordingly as well.
Problem
The variables
contact
andaddress
are currently of typeURI
. This makes the variables less versatile in terms of their usage. For example, URI variables could not be embedded easily in a QR code. Changing the variables to typeString
will make usage of them simpler.Solution
In class DeRecIdentity, the type of
contact
andaddress
variables should be updated toString
as follows:Getters and setters for these variables should be changed accordingly as well.