![JAR search and dependency download from the Maven repository](/logo.png)
templates.java.hashcode.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-kotlin-schema-codegen Show documentation
Show all versions of json-kotlin-schema-codegen Show documentation
Code generation from JSON Schema to Kotlin or Java
{{&indent}} @Override
{{&indent}} public int hashCode() {
{{#hasBaseClassWithProperties}}{{#nonBaseProperties}}{{#first}}{{&indent}} int hash = super.hashCode();
{{/first}}{{^last}}{{&indent}} hash ^= {{>hash_value}};
{{/last}}{{#last}}{{&indent}} return hash ^ {{>hash_value}};
{{/last}}{{/nonBaseProperties}}{{^nonBaseProperties}}{{&indent}} return super.hashCode();
{{/nonBaseProperties}}{{/hasBaseClassWithProperties}}{{^hasBaseClassWithProperties}}{{#properties}}{{&indent}} {{#first}}{{#last}}return{{/last}}{{^last}}int hash ={{/last}}{{/first}}{{^first}}{{#last}}return hash ^{{/last}}{{^last}}hash ^={{/last}}{{/first}} {{!
}}{{>hash_value}};
{{/properties}}{{^properties}}{{&indent}} return 0;
{{/properties}}{{/hasBaseClassWithProperties}}{{&indent}} }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy