* @throws «NPE.importedName» if {@code obj} is {@code null}
*/
static int «BINDING_HASHCODE_NAME»(final «type.fullyQualifiedNonNull» obj) {
- final int prime = 31;
int result = 1;
- «FOR property : typeAnalysis.value»
- result = prime * result + «property.importedUtilClass».hashCode(obj.«property.getterMethodName»());
- «ENDFOR»
+ «val props = typeAnalysis.value»
+ «IF !props.empty»
+ final int prime = 31;
+ «FOR property : props»
+ result = prime * result + «property.importedUtilClass».hashCode(obj.«property.getterMethodName»());
+ «ENDFOR»
+ «ENDIF»
«IF augmentable»
for (var augmentation : obj.augmentations().values()) {
result += augmentation.hashCode();
* @throws NullPointerException if {@code obj} is {@code null}
*/
static int bindingHashCode(final test.@NonNull test obj) {
- final int prime = 31;
int result = 1;
+ final int prime = 31;
result = prime * result + Objects.hashCode(obj.getTest());
return result;
}
* @throws NullPointerException if {@code obj} is {@code null}
*/
static int bindingHashCode(final test.@NonNull test obj) {
- final int prime = 31;
int result = 1;
+ final int prime = 31;
result = prime * result + Objects.hashCode(obj.getTest1());
result = prime * result + Objects.hashCode(obj.getTest2());
return result;
* @throws NullPointerException if {@code obj} is {@code null}
*/
static int bindingHashCode(final test.@NonNull test obj) {
- final int prime = 31;
int result = 1;
for (var augmentation : obj.augmentations().values()) {
result += augmentation.hashCode();
* @throws NullPointerException if {@code obj} is {@code null}
*/
static int bindingHashCode(final test.@NonNull test obj) {
- final int prime = 31;
int result = 1;
+ final int prime = 31;
result = prime * result + Objects.hashCode(obj.getTest());
for (var augmentation : obj.augmentations().values()) {
result += augmentation.hashCode();
* @throws NullPointerException if {@code obj} is {@code null}
*/
static int bindingHashCode(final test.@NonNull test obj) {
- final int prime = 31;
int result = 1;
+ final int prime = 31;
result = prime * result + Objects.hashCode(obj.getTest1());
result = prime * result + Objects.hashCode(obj.getTest2());
for (var augmentation : obj.augmentations().values()) {