org.immutables.fixture.modifiable.HavingEqualsHashCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of value-fixture Show documentation
Show all versions of value-fixture Show documentation
Module that contains all tests for the code generation capability
package org.immutables.fixture.modifiable;
import org.immutables.value.Value;
@Value.Modifiable
@Value.Immutable(intern = true)
public abstract class HavingEqualsHashCode {
@Override
public final boolean equals(Object o) {
return o.toString().equals(this.toString());
}
@Override
public final int hashCode() {
return 1;
}
}