private <T> String toStringOrNull(T value) { return value == null ? null : value.toString(); }And I really do not like it.
Optional.of(value).orElse(null)What I do is to retrieve entities from a database and those entities are then mapped to a DTO.
BeanUtils.copyProperties(source, target);But some of the properties can be null and I need to handle that.
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE