Title: equals and hashCode contract in Java
Open Graph Title: equals and hashCode contract in Java
X Title: equals and hashCode contract in Java
Open Graph Description: In Java, equals() method is used to compare the equivalence between two objects. hashCode() method is used to generate the object's hash code which is used to properly distribute entries across hash table based collections such as HashMap or HashSet By default, both of them are defined in the Object
X Description: In Java, equals() method is used to compare the equivalence between two objects. hashCode() method is used to generate the object's hash code which is used to properly distribute entries across hash table based collections such as HashMap or HashSet By default, both of them are defined in the Object
Opengraph URL: http://hellokoding.com/java-equals-and-hashcode/
X: @hellokoding
Generator: Ghost 0.9
Domain: hellokoding.com
{
"@context": "https://schema.org",
"@type": "Article",
"publisher": {
"@type": "Organization",
"name": "HelloKoding - Practical Coding Guides, Tutorials and Examples Series",
"logo": "http://hellokoding.com/content/images/2020/11/logo-64.png"
},
"author": {
"@type": "Person",
"name": "Van N.",
"image": "http://hellokoding.com/content/images/2022/01/avatar_2010.jpg",
"url": "http://hellokoding.com/author/giau/",
"sameAs": [
"https://github.com/giaungo"
],
"description": "https://github.com/giaungo\nhttps://linkedin.com/in/giaungo"
},
"headline": "equals and hashCode contract in Java",
"url": "http://hellokoding.com/java-equals-and-hashcode/",
"datePublished": "2019-06-15T05:37:51.000Z",
"dateModified": "2020-03-29T12:48:31.000Z",
"image": "http://hellokoding.com/content/images/2019/06/JavaCore_equals--andhashCode--.png",
"keywords": "Java, Collections In Java",
"description": "In Java, equals() method is used to compare the equivalence between two objects. hashCode() method is used to generate the object's hash code which is used to properly distribute entries across hash table based collections such as HashMap or HashSet By default, both of them are defined in the Object"
}
| None | IE=edge |
| referrer | origin-when-cross-origin |
| og:site_name | HelloKoding - Practical Coding Guides, Tutorials and Examples Series |
| og:type | article |
| og:image | http://hellokoding.com/content/images/2019/06/JavaCore_equals--andhashCode--.png |
| article:published_time | 2019-06-15T05:37:51.000Z |
| article:modified_time | 2020-03-29T12:48:31.000Z |
| article:tag | Collections In Java |
| article:publisher | https://www.facebook.com/hellokoding |
| twitter:card | summary_large_image |
| twitter:url | http://hellokoding.com/java-equals-and-hashcode/ |
| twitter:image | http://hellokoding.com/content/images/2019/06/JavaCore_equals--andhashCode--.png |
| twitter:label1 | Written by |
| twitter:data1 | Van N. |
| twitter:label2 | Filed under |
| twitter:data2 | Java, Collections In Java |
Links:
Viewport: width=device-width, initial-scale=1.0