Is there some kind of design pattern for the following situation?
Requirements:
latandlonare always required.placeandnameare optional (can be null).- When the optional variables are null,
getPlace()andgetName()should return thelatandlonas 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