Is there some kind of design pattern for the following situation?
Requirements:
lat
andlon
are always required.place
andname
are optional (can be null).- When the optional variables are null,
getPlace()
andgetName()
should return thelat
andlon
as string.
The current situation seems kinda "dirty" to me, so i was wondering if there is "clean" solution. I could not find the answer myself.
Aucun commentaire:
Enregistrer un commentaire