A lot of you would be unaware of this new static utility for objects introduced in Java 7- its the java.util.Objects class. I came across this usage of class while I was browsing through the updated Java 8 collections API. The static utility methods added as part of java.util.Objects class allow us to perform null-safe operations on objects. Lets have a look at the use of each of those methods:compare This method accepts- the objects to be compared and also a Comparator. If the object references passe...
|
1
Pins |
|
||
|
To post comments using your Facebook,Twitter, Gmail etc credentials in the Discus comments section. Or use your Javapins credentials at the end of the page.
To post your comment as a Javapins user please login or signup to Javapins database.
|