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

org.pojomatic.annotations.SubclassCannotOverrideEquals Maven / Gradle / Ivy

Go to download

Automatically provides configurable implementations of the equals(Object), hashCode() and toString() methods inherited from java.lang.Object

There is a newer version: 2.2.1
Show newest version
package org.pojomatic.annotations;

import java.lang.annotation.*;

import org.pojomatic.Pojomator;

/**
 * Declares that a subclass of the annotated type cannot override the behavior of equals.
 *
 * Absent this annotation, it is assumed that subclasses cannot override {@code equals} for interface
 * types, and can for other types.
 *
 * @see Pojomator#doEquals(Object, Object)
 */
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface SubclassCannotOverrideEquals {
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy