All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.java.hashcode.mustache Maven / Gradle / Ivy

There is a newer version: 0.113
Show newest version
{{&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